Skip to content

Commit eb02f20

Browse files
Merge pull request #27407 from adrian-prantl/split-dwarf
On Linux build LLVM and subprojects with -gsplit-dwarf which is more …
2 parents 19b55ed + 9b6ff03 commit eb02f20

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

utils/build-script-impl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1988,6 +1988,15 @@ for host in "${ALL_HOSTS[@]}"; do
19881988
-DINTERNAL_INSTALL_PREFIX="local"
19891989
)
19901990

1991+
if [[ "$(uname -s)" == "Linux" ]] ; then
1992+
# On Linux build LLVM and subprojects with -gsplit-dwarf which is more
1993+
# space/time efficient than -g on that platform.
1994+
llvm_cmake_options=(
1995+
"${llvm_cmake_options[@]}"
1996+
-DLLVM_USE_SPLIT_DWARF:BOOL=YES
1997+
)
1998+
fi
1999+
19912000
if [[ "${DARWIN_TOOLCHAIN_VERSION}" ]] ; then
19922001
swift_cmake_options=(
19932002
"${swift_cmake_options[@]}"

0 commit comments

Comments
 (0)