Force mangling version for rustc_codegen_gcc

This commit is contained in:
Guillaume Gomez 2023-10-29 01:43:18 +02:00
parent 4b290d40a5
commit a1902a81d9
3 changed files with 5 additions and 2 deletions

View File

@ -59,6 +59,7 @@ o("missing-tools", "dist.missing-tools", "allow failures when building tools")
o("use-libcxx", "llvm.use-libcxx", "build LLVM with libc++")
o("control-flow-guard", "rust.control-flow-guard", "Enable Control Flow Guard")
o("patch-binaries-for-nix", "build.patch-binaries-for-nix", "whether patch binaries for usage with Nix toolchains")
o("new-symbol-mangling", "rust.new-symbol-mangling", "use symbol-mangling-version v0")
v("llvm-cflags", "llvm.cflags", "build LLVM with these extra compiler flags")
v("llvm-cxxflags", "llvm.cxxflags", "build LLVM with these extra compiler flags")

View File

@ -53,7 +53,8 @@ ENV RUST_CONFIGURE_ARGS \
--build=x86_64-unknown-linux-gnu \
--llvm-root=/usr/lib/llvm-15 \
--enable-llvm-link-shared \
--set rust.thin-lto-import-instr-limit=10
--set rust.thin-lto-import-instr-limit=10 \
--enable-new-symbol-mangling
COPY host-x86_64/x86_64-gnu-llvm-15/script.sh /tmp/

View File

@ -87,7 +87,8 @@ RUN npm install -g browser-ui-test@$(head -n 1 /tmp/browser-ui-test.version) --u
ENV RUST_CONFIGURE_ARGS \
--build=x86_64-unknown-linux-gnu \
--save-toolstates=/tmp/toolstate/toolstates.json
--save-toolstates=/tmp/toolstate/toolstates.json \
--enable-new-symbol-mangling
ENV HOST_TARGET x86_64-unknown-linux-gnu