Fix rust compilation

This commit is contained in:
Wildan M 2026-10-16 17:30:02 +07:00
parent 332fb5e785
commit 795aa87b72
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79

View File

@ -30,9 +30,6 @@ sed -i "s|TARGET|${TARGET}|g" config.toml
else
DYNAMIC_INIT
# Linker flags for stage2 compiler (host -> target)
ARCH="${TARGET%%-*}"
export CARGO_TARGET_${ARCH^^}_UNKNOWN_REDOX_RUSTFLAGS="${RUSTFLAGS}" # Rust
# Hack for Rust errorneusly running `llvm-config --version` on cross compiled llvm-config
cat "${COOKBOOK_ROOT}/bin/${TARGET}-llvm-config" > "${COOKBOOK_SYSROOT}/bin/llvm-config"
# Hack for Rust stage1 being dynamically linked with LLVM in prefix toolchain