summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorDaniel Moody <daniel.moody@mongodb.com>2022-09-16 20:35:45 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-09-16 22:38:17 +0000
commit5551a2950278aac748728c79b75515b054487467 (patch)
treefa15b5184ec15395e08ac48361248d34ded0349e /SConstruct
parent6da36dce7d1a4fa6c77de6cf8a877d8a58b4f639 (diff)
downloadmongo-5551a2950278aac748728c79b75515b054487467.tar.gz
SERVER-69765 fix SPLIT_DWARF condition that broke windows builds
Diffstat (limited to 'SConstruct')
-rwxr-xr-xSConstruct9
1 files changed, 3 insertions, 6 deletions
diff --git a/SConstruct b/SConstruct
index c09e05f6672..a2029692872 100755
--- a/SConstruct
+++ b/SConstruct
@@ -5545,12 +5545,9 @@ 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'] = all([
- not link_model == "dynamic",
- env.ToolchainIs('gcc', 'clang'),
- not env.TargetOSIs('darwin'),
- env.CheckCCFLAGSSupported('-gsplit-dwarf'),
- ])
+ env['SPLIT_DWARF'] = (not link_model == "dynamic" and env.ToolchainIs('gcc', 'clang')
+ and not env.TargetOSIs('darwin')
+ and env.CheckCCFLAGSSupported('-gsplit-dwarf'))
if env['SPLIT_DWARF']:
if env.ToolchainIs('gcc', 'clang'):