Skip to content

Commit

Permalink
Set default linker for x86_64-pc-windows-gnu to x86_64-w64-mingw32-gcc
Browse files Browse the repository at this point in the history
This makes cross-compiling effortless under Ubuntu.
  • Loading branch information
emk committed Oct 22, 2016
1 parent e4717d5 commit 8ffea20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[target.x86_64-pc-windows-gnu]
# If we're targetting Windows, configure a custom linker so that `cargo`
# won't attempt to use the system GCC.
linker = "x86_64-w64-mingw32-gcc"

0 comments on commit 8ffea20

Please sign in to comment.