Skip to content

Commit

Permalink
remove vendor dir from CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiahParry committed May 8, 2024
1 parent a8cb0dc commit 36bce75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/Makevars
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ $(STATLIB):
export CARGO_HOME=$(CARGOTMP); \
export PATH="$(PATH):$(HOME)/.cargo/bin" && \
cargo build $(CRAN_FLAGS) --lib --release --manifest-path=./rust/Cargo.toml --target-dir $(TARGET_DIR); \
rm -Rf $(CARGOTMP) && \
rm -Rf $(VENDOR_DIR) && \
rm -Rf $(LIBDIR)/build; \
rm -Rf $(CARGOTMP) $(VENDOR_DIR) $(LIBDIR)/build; \
else \
export PATH="$(PATH):$(HOME)/.cargo/bin" && \
cargo build --lib --release --manifest-path=./rust/Cargo.toml --target-dir $(TARGET_DIR); \
Expand Down
3 changes: 1 addition & 2 deletions src/Makevars.win
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ $(STATLIB):
export CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER="$(CARGO_LINKER)" && \
export LIBRARY_PATH="$${LIBRARY_PATH};$(CURDIR)/$(TARGET_DIR)/libgcc_mock" && \
cargo build --target=$(TARGET) --lib --release --manifest-path=./rust/Cargo.toml --target-dir $(TARGET_DIR); \
rm -Rf $(CARGOTMP) && \
rm -Rf $(LIBDIR)/build; \
rm -Rf $(CARGOTMP) $(VENDOR_DIR) $(LIBDIR)/build; \
else \
export CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER="$(CARGO_LINKER)" && \
export LIBRARY_PATH="$${LIBRARY_PATH};$(CURDIR)/$(TARGET_DIR)/libgcc_mock" && \
Expand Down

0 comments on commit 36bce75

Please sign in to comment.