Skip to content

Commit 9d9a41e

Browse files
committed
[libc++][hardening] Make the safe mode pipeline run with modules enabled
Differential Revision: https://reviews.llvm.org/D159065
1 parent edecb60 commit 9d9a41e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
set(LIBCXX_ENABLE_STD_MODULES ON CACHE BOOL "") # TODO MODULES Remove when enabled automatically.
12
set(LIBCXX_HARDENING_MODE "safe" CACHE STRING "")

libcxx/utils/ci/buildkite-pipeline.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,8 +505,11 @@ steps:
505505
- "**/test-results.xml"
506506
- "**/*.abilist"
507507
env:
508-
CC: "clang-${LLVM_HEAD_VERSION}"
509-
CXX: "clang++-${LLVM_HEAD_VERSION}"
508+
# Note: Modules require an absolute path for `clang-scan-deps` (see
509+
# https://github.com/llvm/llvm-project/issues/61006).
510+
CC: "/usr/lib/llvm-${LLVM_HEAD_VERSION}/bin/clang"
511+
CXX: "/usr/lib/llvm-${LLVM_HEAD_VERSION}/bin/clang++"
512+
CMAKE: "/opt/bin/cmake"
510513
ENABLE_CLANG_TIDY: "On"
511514
agents:
512515
queue: "libcxx-builders"

0 commit comments

Comments
 (0)