Skip to content

Commit 88bad0d

Browse files
committed
build-llvm: Allow setting CMAKE_<LANG>_COMPILER_LAUNCHER via an env variable
1 parent 340e2e7 commit 88bad0d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build-llvm.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,11 @@ else
234234
fi
235235
fi
236236

237+
if [ -n "$COMPILER_LAUNCHER" ]; then
238+
CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_C_COMPILER_LAUNCHER=$COMPILER_LAUNCHER"
239+
CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_CXX_COMPILER_LAUNCHER=$COMPILER_LAUNCHER"
240+
fi
241+
237242
if [ -n "$TARGET_WINDOWS" ]; then
238243
# Custom, llvm-mingw specific defaults. We normally set these in
239244
# the frontend wrappers, but this makes sure they are enabled by

0 commit comments

Comments
 (0)