Skip to content

Commit a172de3

Browse files
committed
Try to be more explicit
1 parent d1162e3 commit a172de3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Makevars.win

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ PKG_LIBS = -L$(LIBDIR) -lmyrustlib -lws2_32 -ladvapi32 -luserenv -ldbghelp -lbcr
1010

1111
# This bypasses the exception stuff
1212
#export CARGO_TARGET_I686_PC_WINDOWS_GNU_RUSTFLAGS=-C panic=abort
13-
export CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER=gcc
1413
ifeq ($(R_COMPILED_BY),gcc 8.3.0)
1514
GCCPATH=$(subst C:\,/c/,$(RTOOLS40_HOME))/mingw$(WIN)/bin
15+
export CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER=$(RTOOLS40_HOME)\\mingw64\\bin\\gcc
16+
export CARGO_TARGET_I686_PC_WINDOWS_GNU_LINKER=$(RTOOLS40_HOME)\\\mingw32\\bin\\gcc
1617
else
18+
export CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER=gcc
1719
GCCPATH=$(subst C:\,/c/,$(RTOOLS43_HOME))/x86_64-w64-mingw32.static.posix/bin
1820
endif
1921

0 commit comments

Comments
 (0)