Skip to content

Commit 0f2dc03

Browse files
committed
Cleanups
1 parent 96d1d67 commit 0f2dc03

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Makevars

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ export CARGO_HOME=$(CARGOTMP)
1919
$(STATLIB):
2020
if [ -f myrustlib/vendor.tar.xz ]; then tar xf myrustlib/vendor.tar.xz && mkdir -p $(CARGOTMP) && cp myrustlib/vendor-config.toml $(CARGOTMP)/config.toml; fi
2121
PATH="${PATH}:${HOME}/.cargo/bin" cargo build ${CRANFLAGS} --release --manifest-path=myrustlib/Cargo.toml
22-
rm -Rf $(CARGOTMP) vendor || true # CRAN wants us to remove "detritus"
23-
rm -Rf $(LIBDIR)/build || true
22+
@$(STRIP_STATIC_LIB) $(STATLIB) || true
23+
@rm -Rf $(CARGOTMP) vendor || true # CRAN wants us to remove "detritus"
24+
@rm -Rf $(LIBDIR)/build || true
2425

2526
cleanup: $(SHLIB)
2627
@rm -Rf $(STATLIB) myrustlib/target

0 commit comments

Comments
 (0)