mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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[@]}"
|
||||
|
||||
Reference in New Issue
Block a user