Skip to content

Commit 80b4bc8

Browse files
committed
Try to add rustup mingw-w64 target if not installed
1 parent b8650c7 commit 80b4bc8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Makevars.win

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ifeq ($(R_COMPILED_BY),gcc 8.3.0)
1414
GCCPATH=$(subst C:\,/c/,$(RTOOLS40_HOME))/mingw$(WIN)/bin
1515
endif
1616

17-
all: clean
17+
all: clean rustup
1818

1919
$(SHLIB): $(STATLIB)
2020

@@ -23,3 +23,6 @@ $(STATLIB):
2323

2424
clean:
2525
rm -Rf $(SHLIB) $(STATLIB) $(OBJECTS) myrustlib/target
26+
27+
rustup:
28+
rustup target add $(TARGET) || true

0 commit comments

Comments
 (0)