Merge pull request #6141 from str4d/6065-rust-parallel-lib-and-bins
build: Build Rust library and binaries at the same time
This commit is contained in:
commit
2df8b253f7
|
@ -132,11 +132,12 @@ LIBBITCOIN_CRYPTO_SHANI = crypto/libbitcoin_crypto_shani.a
|
||||||
LIBBITCOIN_CRYPTO += $(LIBBITCOIN_CRYPTO_SHANI)
|
LIBBITCOIN_CRYPTO += $(LIBBITCOIN_CRYPTO_SHANI)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
cargo-build-lib: $(CARGO_CONFIGURED)
|
cargo-build: $(CARGO_CONFIGURED) $(LIBSECP256K1)
|
||||||
$(rust_verbose)$(RUST_ENV_VARS) $(CARGO) build --lib $(RUST_BUILD_OPTS) $(cargo_verbose)
|
$(rust_verbose)$(RUST_ENV_VARS) $(CARGO) build $(RUST_BUILD_OPTS) $(cargo_verbose)
|
||||||
|
|
||||||
cargo-build-bins: $(CARGO_CONFIGURED) $(LIBSECP256K1)
|
cargo-build-lib: cargo-build
|
||||||
$(rust_verbose)$(RUST_ENV_VARS) $(CARGO) build --bins $(RUST_BUILD_OPTS) $(cargo_verbose)
|
|
||||||
|
cargo-build-bins: cargo-build
|
||||||
|
|
||||||
$(INSPECT_TOOL_BIN): cargo-build-bins
|
$(INSPECT_TOOL_BIN): cargo-build-bins
|
||||||
$(AM_V_at)cp $(INSPECT_TOOL_BUILD) $@
|
$(AM_V_at)cp $(INSPECT_TOOL_BUILD) $@
|
||||||
|
|
Loading…
Reference in New Issue