Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ resolver = "2"
members = ["src/rust"]

[profile.release]
codegen-units = 1
lto = true
codegen-units = 16
lto="thin"
# Note: setting debug=true here is only going to cause debuginfo to be
# generated for polymorphic functions inlined from sub-crates and/or
# functions defined in the top-level rust crate, not the soroban sub
Expand Down
6 changes: 6 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,8 @@ $(LIBRUST_STELLAR_CORE): $(RUST_HOST_DEPFILES) $(SRC_RUST_FILES) Makefile $(RUST
CARGO_NET_GIT_FETCH_WITH_CLI=true \
$(CARGO) rustc \
$(CARGOFLAGS_BUILDSTD) \
--config 'profile.release.lto="off"' \
--config 'profile.release.codegen-units=16' \
--package stellar-core \
--target $(RUST_TARGET) \
$(RUST_PROFILE_ARG) \
Expand Down Expand Up @@ -420,6 +422,8 @@ $(SOROBAN_LIBS_STAMP): $(wildcard rust/soroban/p*/Cargo.lock) $(ALL_SOROBAN_GIT_
CARGO_TARGET_DIR=$(SOROBAN_BUILD_DIR)/$$proto/target \
CARGO_NET_GIT_FETCH_WITH_CLI=true \
$(CARGO) build \
--config 'profile.release.lto="thin"' \
--config 'profile.release.codegen-units=16' \
--package soroban-env-host \
$(RUST_PROFILE_ARG) \
--locked \
Expand Down Expand Up @@ -457,6 +461,8 @@ $(LIBRUST_STELLAR_CORE): $(RUST_HOST_DEPFILES) $(SRC_RUST_FILES) $(ALL_SOROBAN_L
CARGO_NET_GIT_FETCH_WITH_CLI=true \
$(CARGO) rustc \
--package stellar-core \
--config 'profile.release.lto="thin"' \
--config 'profile.release.codegen-units=16' \
$(RUST_PROFILE_ARG) \
--locked \
--target-dir $(abspath $(RUST_TARGET_DIR)) \
Expand Down
Loading