Skip to content

Commit

Permalink
rust: Enforcing --sysroot at link time for tier-3 toolchain builds
Browse files Browse the repository at this point in the history
  • Loading branch information
th0ma7 committed Nov 29, 2023
1 parent ababd70 commit 6da60f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mk/spksrc.tc-rust.mk
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ else
@(cd $(WORK_DIR)/rust && \
CFLAGS_$(subst -,_,$(RUST_TARGET))="$(TC_EXTRA_CFLAGS)" \
CXXFLAGS_$(subst -,_,$(RUST_TARGET))="$(TC_EXTRA_CFLAGS)" \
LDFLAGS_$(subst -,_,$(RUST_TARGET))="--sysroot=$(WORK_DIR)/$(TC_TARGET)/$(TC_SYSROOT)" \
RUST_BACKTRACE=full \
./x build --config $(TC_LOCAL_VARS_RUST))
@rustup toolchain link $(TC_ARCH) $(WORK_DIR)/rust/build/host/stage2
Expand Down

0 comments on commit 6da60f1

Please sign in to comment.