File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 31
31
steps :
32
32
- uses : actions/checkout@v3
33
33
34
+ - if : runner.os == 'windows' && matrix.config.r == '4.1'
35
+ uses : r-windows/install-rtools@master
36
+
34
37
- name : Use precompiled libgifski
35
38
if : runner.os == 'Windows' && matrix.config.static
36
39
run : Copy-Item src\Makevars.win.static src\Makevars.win
Original file line number Diff line number Diff line change @@ -10,12 +10,11 @@ PKG_LIBS = -L$(LIBDIR) -lmyrustlib -lws2_32 -ladvapi32 -luserenv -ldbghelp -lbcr
10
10
11
11
# This bypasses the exception stuff
12
12
#export CARGO_TARGET_I686_PC_WINDOWS_GNU_RUSTFLAGS=-C panic=abort
13
+ export CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER=gcc
13
14
ifeq ($(R_COMPILED_BY),gcc 8.3.0)
14
15
GCCPATH=$(subst C:\,/c/,$(RTOOLS40_HOME))/mingw$(WIN)/bin
15
16
else
16
- # Either rtools40 or rtools42 ucrt toolchain is OK
17
- GCCPATH=$(R_RTOOLS42_PATH):$(subst C:\,/c/,$(RTOOLS40_HOME))/ucrt64/bin
18
- export CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER=gcc
17
+ GCCPATH=$(subst C:\,/c/,$(RTOOLS43_HOME))/x86_64-w64-mingw32.static.posix/bin
19
18
endif
20
19
21
20
all: clean rustup
@@ -27,6 +26,7 @@ ifeq ($(WIN),64) #hack for mxe-rtools42
27
26
mkdir -p myrustlib/target/release/deps; echo '!<arch>' > myrustlib/target/release/deps/libgcc_eh.a
28
27
endif
29
28
PATH="$(GCCPATH):$(USERPROFILE)\.cargo:$(PATH)" cargo build --target=$(TARGET) --release --manifest-path=myrustlib/Cargo.toml
29
+ rm -Rf $(LIBDIR)/build
30
30
31
31
clean:
32
32
rm -Rf $(SHLIB) $(STATLIB) $(OBJECTS) myrustlib/target
You can’t perform that action at this time.
0 commit comments