diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index c5ed339d..203518e0 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -39,6 +39,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: avoid recompile + run: make --touch && make --touch -C tools/minicargo && make --touch -C tools/testrunner - name: Download all workflow run artifacts uses: actions/download-artifact@v2 with: @@ -46,7 +48,7 @@ jobs: path: bin - name: make RUSTCSRC run: make RUSTCSRC - - name: avoid recompile + - name: avoid recompile 2 run: make --touch && make --touch -C tools/minicargo && make --touch -C tools/testrunner - name: make test run: make test diff --git a/Makefile b/Makefile index 865ba346..7341f100 100644 --- a/Makefile +++ b/Makefile @@ -289,7 +289,7 @@ output$(OUTDIR_SUF)/rust/test_run-pass_hello_out.txt: output$(OUTDIR_SUF)/rust/t # Compile rules for mrustc itself # ------------------------------- bin/mrustc.a: $(filter-out $(OBJDIR)main.o, $(OBJ)) - @mkdir -p $(dir $@) + @+mkdir -p $(dir $@) @echo [AR] -o $@ ifeq ($(shell uname -s || echo not),Darwin) # We can use llvm-ar for having rcD available on Darwin. @@ -300,7 +300,7 @@ else endif $(BIN): $(OBJDIR)main.o bin/mrustc.a bin/common_lib.a - @mkdir -p $(dir $@) + @+mkdir -p $(dir $@) @echo [CXX] -o $@ ifeq ($(OS),Windows_NT) else ifeq ($(shell uname -s || echo not),Darwin)