Skip to content

Commit

Permalink
build-llvm: Allow setting CMAKE_<LANG>_COMPILER_LAUNCHER via an env v…
Browse files Browse the repository at this point in the history
…ariable
  • Loading branch information
mstorsjo committed Apr 24, 2024
1 parent 340e2e7 commit 88bad0d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build-llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 88bad0d

Please sign in to comment.