Skip to content

Commit fd6a42e

Browse files
fix: add $(SHLIB) as dependency for rust_clean target in order to avoid race condition in makevars (#424)
* fix: add $(SHLIB) as dependency for rust_clean target in order to avoid race condition in makevars * tests: update snapshot
1 parent 2556866 commit fd6a42e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

inst/templates/Makevars.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ $(STATLIB):
3939
# Always clean up CARGOTMP
4040
rm -Rf $(CARGOTMP);
4141

42-
rust_clean:
42+
rust_clean: $(SHLIB)
4343
rm -Rf $(CARGOTMP) $(VENDOR_DIR) @CLEAN_TARGET@
4444

4545
clean:

inst/templates/Makevars.win.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ $(STATLIB):
3434
# Always clean up CARGOTMP
3535
rm -Rf $(CARGOTMP);
3636

37-
rust_clean:
37+
rust_clean: $(SHLIB)
3838
rm -Rf $(CARGOTMP) $(VENDOR_DIR) @CLEAN_TARGET@
3939

4040
clean:

tests/testthat/_snaps/use_extendr.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@
232232
# Always clean up CARGOTMP
233233
rm -Rf $(CARGOTMP);
234234
235-
rust_clean:
235+
rust_clean: $(SHLIB)
236236
rm -Rf $(CARGOTMP) $(VENDOR_DIR) @CLEAN_TARGET@
237237
238238
clean:
@@ -293,7 +293,7 @@
293293
# Always clean up CARGOTMP
294294
rm -Rf $(CARGOTMP);
295295
296-
rust_clean:
296+
rust_clean: $(SHLIB)
297297
rm -Rf $(CARGOTMP) $(VENDOR_DIR) @CLEAN_TARGET@
298298
299299
clean:
@@ -458,7 +458,7 @@
458458
# Always clean up CARGOTMP
459459
rm -Rf $(CARGOTMP);
460460
461-
rust_clean:
461+
rust_clean: $(SHLIB)
462462
rm -Rf $(CARGOTMP) $(VENDOR_DIR) @CLEAN_TARGET@
463463
464464
clean:

0 commit comments

Comments
 (0)