diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-07-05 01:50:35 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-11-26 22:07:28 +0100 |
commit | 343ebcc048c69e103db3f87a9339388bd5dd93cb (patch) | |
tree | dd3c3d36df8023ebf231071d5c88a9eae9d56d00 /nix-rust | |
parent | afb021893beb598213d4225de5edd746baa81d7a (diff) |
Only pass '-Z offline' to cargo if we have a vendor directory
Diffstat (limited to 'nix-rust')
-rw-r--r-- | nix-rust/local.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nix-rust/local.mk b/nix-rust/local.mk index ce88fa51b..a5e017cef 100644 --- a/nix-rust/local.mk +++ b/nix-rust/local.mk @@ -4,6 +4,6 @@ libnixrust_LDFLAGS_USE := -L$(d)/target/release -lnixrust -ldl libnixrust_LDFLAGS_USE_INSTALLED := $(libnixrust_LDFLAGS_USE) $(d)/target/release/libnixrust.a: $(wildcard $(d)/src/*.rs) $(d)/Cargo.toml - $(trace-gen) cd nix-rust && CARGO_HOME=$$(if [[ -d vendor ]]; then echo vendor; fi) cargo build --release -Z offline && touch target/release/libnixrust.a + $(trace-gen) cd nix-rust && CARGO_HOME=$$(if [[ -d vendor ]]; then echo vendor; fi) cargo build --release $$(if [[ -d vendor ]]; then echo -Z offline; fi) && touch target/release/libnixrust.a dist-files += $(d)/vendor |