diff options
author | Daniel Moody <daniel.moody@mongodb.com> | 2022-09-16 20:35:45 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-16 22:38:17 +0000 |
commit | 5551a2950278aac748728c79b75515b054487467 (patch) | |
tree | fa15b5184ec15395e08ac48361248d34ded0349e /SConstruct | |
parent | 6da36dce7d1a4fa6c77de6cf8a877d8a58b4f639 (diff) | |
download | mongo-5551a2950278aac748728c79b75515b054487467.tar.gz |
SERVER-69765 fix SPLIT_DWARF condition that broke windows builds
Diffstat (limited to 'SConstruct')
-rwxr-xr-x | SConstruct | 9 |
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'): |