summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAiden Grossman <agrossman154@yahoo.com>2024-01-31 22:09:48 -0800
committerAiden Grossman <agrossman154@yahoo.com>2024-01-31 22:11:17 -0800
commit5d9ffcd7f8e47ab1e15e8f7f23784b639544a7e9 (patch)
treec7a5bb8e60fdd884fa6005005beb6ecf12348f9c
parenta8f317aeaccaa052c9c4cfa4660c40554fbbf223 (diff)
[Github] Build stage2-clang-bolt target for CI container
Only the stage2-distribution target is built by default for the stage2 distribution installation target. This means that we don't get a BOLT optimized binary. This patch explicitly builds the stage2-clang-bolt target before the distribution installation target so that the clang binary is optimized before it gets installed.
-rw-r--r--.github/workflows/containers/github-action-ci/Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/containers/github-action-ci/Dockerfile b/.github/workflows/containers/github-action-ci/Dockerfile
index 6c8a2045bbdc..2f86b9ba1ef4 100644
--- a/.github/workflows/containers/github-action-ci/Dockerfile
+++ b/.github/workflows/containers/github-action-ci/Dockerfile
@@ -30,7 +30,7 @@ RUN cmake -B ./build -G Ninja ./llvm \
-DLLVM_DISTRIBUTION_COMPONENTS="lld;compiler-rt;clang-format" \
-DCLANG_DEFAULT_LINKER="lld"
-RUN ninja -C ./build stage2-install-distribution && ninja -C ./build install-distribution && rm -rf ./build
+RUN ninja -C ./build stage2-clang-bolt stage2-install-distribution && ninja -C ./build install-distribution && rm -rf ./build
FROM base