build-llvm: Allow setting CMAKE_<LANG>_COMPILER_LAUNCHER via an env variable

This commit is contained in:
Martin Storsjö committed 2024-04-24 11:36:57 +03:00
1 parent 340e2e7f0b
commit 88bad0dddd
1 file changed
+5
+5
View File
@@ -234,6 +234,11 @@ else
fi
fi
if [ -n "$COMPILER_LAUNCHER" ]; then
CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_C_COMPILER_LAUNCHER=$COMPILER_LAUNCHER"
CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_CXX_COMPILER_LAUNCHER=$COMPILER_LAUNCHER"
fi
if [ -n "$TARGET_WINDOWS" ]; then
# Custom, llvm-mingw specific defaults. We normally set these in
# the frontend wrappers, but this makes sure they are enabled by