Skip to content

Commit

Permalink
move rust build artifacts to more-normal $(top_builddir)/target
Browse files Browse the repository at this point in the history
  • Loading branch information
graydon committed Jun 27, 2024
1 parent ef4b0d0 commit ebc830b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ min-testcases/
# Rust specific
/src/rust/bin
/src/rust/target
/target
**/target/
/ra-target
/src/rust/RustBridge.cpp
Expand Down
4 changes: 2 additions & 2 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ stellar_core_SOURCES += rust/RustBridge.h rust/RustBridge.cpp

RUST_BUILD_DIR=$(top_builddir)/src/rust
RUST_BIN_DIR=$(RUST_BUILD_DIR)/bin
RUST_TARGET_DIR=$(RUST_BUILD_DIR)/target
RUST_TARGET_DIR=$(top_builddir)/target
RUST_CXXBRIDGE=$(RUST_BIN_DIR)/cxxbridge
RUST_PROFILE=release
RUST_HOST_DEPFILES=rust/Cargo.toml $(top_srcdir)/Cargo.toml $(top_srcdir)/Cargo.lock rust/src/host-dep-tree-curr.txt rust/src/host-dep-tree-prev.txt
Expand All @@ -97,7 +97,7 @@ rust/RustBridge.cpp: rust/src/lib.rs $(SRC_RUST_FILES) Makefile $(RUST_CXXBRIDGE
if cmp -s $@.tmp $@; then rm -v $@.tmp; else mv -v $@.tmp $@; fi

$(LIBRUST_STELLAR_CORE): $(RUST_HOST_DEPFILES) $(SRC_RUST_FILES) Makefile
cd $(RUST_BUILD_DIR) && CARGO_NET_GIT_FETCH_WITH_CLI=true cargo build --locked --$(RUST_PROFILE) --target-dir $(abspath $(RUST_TARGET_DIR)) $(CARGO_FEATURES)
CARGO_NET_GIT_FETCH_WITH_CLI=true cargo build --locked --$(RUST_PROFILE) --target-dir $(abspath $(RUST_TARGET_DIR)) $(CARGO_FEATURES)
ranlib $@

$(srcdir)/src.mk: $(top_srcdir)/make-mks
Expand Down

0 comments on commit ebc830b

Please sign in to comment.