Skip to content

Commit

Permalink
Try setting linker in the config file, see rust-lang/cargo#1109
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed May 5, 2018
1 parent b0c0a57 commit c1e66e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ install:
- C:\rustup-init.exe -y --default-host x86_64-pc-windows-gnu
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustup target add i686-pc-windows-gnu
- copy src\cargo\config C:\Users\appveyor\.cargo\
- C:\Rtools\mingw_32\bin\ar cru c:\Rtools\mingw_32\lib\gcc\i686-w64-mingw32\4.9.3\libgcc_eh.a
- C:\Rtools\mingw_64\bin\ar cru c:\Rtools\mingw_64\lib\gcc\x86_64-w64-mingw32\4.9.3\libgcc_eh.a
- rustc -V
- cargo -V

Expand Down
2 changes: 2 additions & 0 deletions src/myrustlib/.cargo/config → src/cargo/config
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[target.x86_64-pc-windows-gnu]
linker = "c:/Rtools/mingw_64/bin/gcc"
rustc-link-lib = ["pthread"]

[target.i686-pc-windows-gnu]
linker = "c:/Rtools/mingw_32/bin/gcc"
rustc-link-lib = ["pthread"]

0 comments on commit c1e66e6

Please sign in to comment.