[libcxx-commits] [libcxx] [libc++] Turn off PIE when running libc++ premerge tests. (PR #155689)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Aug 27 13:22:31 PDT 2025


https://github.com/cmtice created https://github.com/llvm/llvm-project/pull/155689

Turning off PIE for the LLVM premerge tests gave us an 8-10% run time improvement on Linux. Hopefully it can also improve the libc++ premerge test run times.

>From 7735a6893b5fb2f128f079d26fdb4975d7335dc2 Mon Sep 17 00:00:00 2001
From: Caroline Tice <cmtice at google.com>
Date: Wed, 27 Aug 2025 13:15:31 -0700
Subject: [PATCH] [libc++] Turn off PIE when running libc++ premerge tests.

Turning off PIE for the LLVM premerge tests gave us an 8-10% run time
improvement on Linux. Hopefully it can also improve the libc++
premerge test run times.
---
 libcxx/utils/ci/run-buildbot | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libcxx/utils/ci/run-buildbot b/libcxx/utils/ci/run-buildbot
index 57ecf1e49dbf2..3adca747b310e 100755
--- a/libcxx/utils/ci/run-buildbot
+++ b/libcxx/utils/ci/run-buildbot
@@ -148,6 +148,7 @@ function generate-cmake() {
           -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind" \
           -DLIBCXX_CXX_ABI=libcxxabi \
           -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
+          -DCMAKE_EXE_LINKER_FLAGS="-no-pie" \
           "${@}"
 }
 



More information about the libcxx-commits mailing list