summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorAlexander Neben <alexander.neben@mongodb.com>2022-10-12 15:57:15 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-10-12 16:48:14 +0000
commit77aec6e6dcd06f19a8a9ac29786a1948366659c4 (patch)
tree31e6c53533965fe89b238882cf06a930199d3db2 /SConstruct
parent2e51cfe597385fadd4d7610ada1111b00dccb14f (diff)
downloadmongo-77aec6e6dcd06f19a8a9ac29786a1948366659c4.tar.gz
SERVER-69196 Fixed windows compiles
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index dead2c01084..d6af4915d33 100644
--- a/SConstruct
+++ b/SConstruct
@@ -5576,7 +5576,8 @@ if env['SPLIT_DWARF'] == "auto":
# is .dwo files use absolute paths in the debug info, so it's not relocatable.
# We also found the running splitdwarf with dwarf5 failed to compile
# so unless we set DWARF_VERSION = 4 we are going to turn off split dwarf
- env['SPLIT_DWARF'] = (not link_model == "dynamic" and not env.TargetOSIs('darwin')
+ env['SPLIT_DWARF'] = (not link_model == "dynamic" and env.ToolchainIs('gcc', 'clang')
+ and not env.TargetOSIs('darwin')
and env.CheckCCFLAGSSupported('-gsplit-dwarf')
and env.get('DWARF_VERSION') == 4)