Skip to content

Commit f964322

Browse files
committed
Fix build w/ rtools4
1 parent 797f5d9 commit f964322

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Makevars.win

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ PKG_LIBS = -L$(LIBDIR) -lmyrustlib -lws2_32 -ladvapi32 -luserenv -ldbghelp -lbcr
1313
ifeq ($(R_COMPILED_BY),gcc 8.3.0)
1414
GCCPATH=$(subst C:\,/c/,$(RTOOLS40_HOME))/mingw$(WIN)/bin
1515
else
16+
# Either rtools40 or rtools42 ucrt toolchain is OK
17+
GCCPATH=$(subst C:\,/c/,$(RTOOLS40_HOME))/ucrt64/bin:$(R_RTOOLS42_PATH)
1618
export CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER=gcc
17-
GCCPATH=$(subst C:\,/c/,$(RTOOLS42_HOME))/x86_64-w64-mingw32.static.posix/bin
1819
endif
1920

2021
all: clean rustup

0 commit comments

Comments
 (0)