Skip to content

Commit

Permalink
Prefer standard path, fixes cross compile
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jan 8, 2024
1 parent 9037436 commit 086d742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Makevars
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CRANFLAGS=-j 2

$(STATLIB):
if [ -f myrustlib/vendor.tar.xz ]; then tar xf myrustlib/vendor.tar.xz && mkdir -p $(CARGO_HOME) && cp myrustlib/vendor-config.toml $(CARGO_HOME)/config.toml; fi
PATH="$(HOME)/.cargo/bin:$(PATH)" cargo build ${CRANFLAGS} --release --manifest-path=myrustlib/Cargo.toml
PATH="${PATH}:${HOME}/.cargo/bin" cargo build ${CRANFLAGS} --release --manifest-path=myrustlib/Cargo.toml
rm -Rf $(CARGO_HOME) vendor || true
rm -Rf $(LIBDIR)/build || true

Expand Down

0 comments on commit 086d742

Please sign in to comment.