On Linux build LLVM and subprojects with -gsplit-dwarf which is more space/time

efficient than -g on that platform. This improves time spent to link products
built with debug info quite a bit.
This commit is contained in:
Adrian Prantl
2019-09-27 13:35:42 -07:00
parent b6e072bd3a
commit 9b6ff03f9e

View File

@@ -2043,6 +2043,15 @@ for host in "${ALL_HOSTS[@]}"; do
-DINTERNAL_INSTALL_PREFIX="local"
)
if [[ "$(uname -s)" == "Linux" ]] ; then
# On Linux build LLVM and subprojects with -gsplit-dwarf which is more
# space/time efficient than -g on that platform.
llvm_cmake_options=(
"${llvm_cmake_options[@]}"
-DLLVM_USE_SPLIT_DWARF:BOOL=YES
)
fi
if [[ "${DARWIN_TOOLCHAIN_VERSION}" ]] ; then
swift_cmake_options=(
"${swift_cmake_options[@]}"