Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7f7cd6e

Browse files
committedDec 23, 2024
Add LTO support to clang in CI
1 parent 4f4d620 commit 7f7cd6e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
 

‎src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,5 @@ ENV DIST_SRC 1
104104
ENV LIBCURL_NO_PKG_CONFIG 1
105105

106106
ENV DIST_REQUIRE_ALL_TOOLS 1
107+
108+
ENV LD_PRELOAD=/rustroot/lib64/libstdc++.so.6

‎src/ci/docker/host-x86_64/dist-x86_64-linux/build-clang.sh

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ hide_output \
3939
-DLLVM_INCLUDE_TESTS=OFF \
4040
-DLLVM_INCLUDE_EXAMPLES=OFF \
4141
-DLLVM_ENABLE_PROJECTS="clang;lld;compiler-rt;bolt" \
42+
-DLLVM_BINUTILS_INCDIR="/rustroot/lib/gcc/x86_64-pc-linux-gnu/9.5.0/plugin/include/" \
4243
-DC_INCLUDE_DIRS="$INC"
4344

4445
hide_output make -j$(nproc)

0 commit comments

Comments
 (0)
Failed to load comments.