Skip to content

Instantly share code, notes, and snippets.

@daniel-abramov
Created June 8, 2017 16:35
Show Gist options
  • Save daniel-abramov/edb6cd0645bbe0f678e96c1b6408758d to your computer and use it in GitHub Desktop.
Save daniel-abramov/edb6cd0645bbe0f678e96c1b6408758d to your computer and use it in GitHub Desktop.
Cargo configuration for crosscompilation for Windows and Mac (~/.cargo/config)
[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