Created
June 8, 2017 16:35
-
-
Save daniel-abramov/edb6cd0645bbe0f678e96c1b6408758d to your computer and use it in GitHub Desktop.
Cargo configuration for crosscompilation for Windows and Mac (~/.cargo/config)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[target.x86_64-pc-windows-gnu] | |
linker = "x86_64-w64-mingw32-gcc" | |
rustflags = ["-L/usr/x86_64-w64-mingw32/lib", "-lstatic=ssl", "-lstatic=crypto", "-lgdi32"] | |
[target.x86_64-apple-darwin] | |
linker = "/usr/local/osx-ndk-x86/bin/x86_64-apple-darwin15-clang" | |
rustflags = ["-C", "link-arg=-mmacosx-version-min=10.7"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment