Skip to content

Commit 748b646

Browse files
authored
Merge pull request swiftlang#27623 from adrian-prantl/split-fixup
2 parents 5e1f790 + 95e7343 commit 748b646

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

utils/build-script-impl

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,12 +1989,14 @@ for host in "${ALL_HOSTS[@]}"; do
19891989
)
19901990

19911991
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-
)
1992+
if [[ $(is_cmake_debuginfo_build_type "${LLVM_BUILD_TYPE}") ]] ; then
1993+
# On Linux build LLVM and subprojects with -gsplit-dwarf which is more
1994+
# space/time efficient than -g on that platform.
1995+
llvm_cmake_options=(
1996+
"${llvm_cmake_options[@]}"
1997+
-DLLVM_USE_SPLIT_DWARF:BOOL=YES
1998+
)
1999+
fi
19982000
fi
19992001

20002002
if [[ "${DARWIN_TOOLCHAIN_VERSION}" ]] ; then

0 commit comments

Comments
 (0)