summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorDaniel Moody <daniel.moody@mongodb.com>2022-09-16 03:48:58 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-09-16 04:59:45 +0000
commitbadc2e81ee7e7b101713c50bc8b83eb9dad2ee89 (patch)
tree633b274c1ff6549011f29ae0426eafa5fd90f8a0 /SConstruct
parentc75149356dd9c18b72eb476e69d58a21d8c304ea (diff)
downloadmongo-badc2e81ee7e7b101713c50bc8b83eb9dad2ee89.tar.gz
SERVER-69765 turn off default split-dwarf on macos
Diffstat (limited to 'SConstruct')
-rwxr-xr-xSConstruct8
1 files changed, 6 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index 77c2400c609..c09e05f6672 100755
--- a/SConstruct
+++ b/SConstruct
@@ -5545,8 +5545,12 @@ if env['SPLIT_DWARF'] == "auto":
# For static builds, splitting out the dwarf info reduces memory requirments, link time
# and binary size significantly. It's affect is less prominent in dynamic builds. The downside
# is .dwo files use absolute paths in the debug info, so it's not relocatable.
- env['SPLIT_DWARF'] = not link_model == "dynamic" and env.ToolchainIs(
- 'gcc', 'clang') and env.CheckCCFLAGSSupported('-gsplit-dwarf')
+ env['SPLIT_DWARF'] = all([
+ not link_model == "dynamic",
+ env.ToolchainIs('gcc', 'clang'),
+ not env.TargetOSIs('darwin'),
+ env.CheckCCFLAGSSupported('-gsplit-dwarf'),
+ ])
if env['SPLIT_DWARF']:
if env.ToolchainIs('gcc', 'clang'):