summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorDaniel Moody <daniel.moody@mongodb.com>2022-08-29 09:35:51 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-29 16:02:24 +0000
commit53aa9bec47e34bd010b5dc6b751474c74c3a1797 (patch)
treeaa41a9569dab2b8c7ec11e63e22fdb64bf2bc023 /SConstruct
parent9e38bb05766a84765a1db547a137c7c64f09f217 (diff)
downloadmongo-53aa9bec47e34bd010b5dc6b751474c74c3a1797.tar.gz
SERVER-68475 only use custom configure check with gcc and clang.
Diffstat (limited to 'SConstruct')
-rwxr-xr-xSConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index d0c705164f1..c7025337c2a 100755
--- a/SConstruct
+++ b/SConstruct
@@ -5533,7 +5533,8 @@ 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.CheckCCFLAGSSupported('-gsplit-dwarf')
+ env['SPLIT_DWARF'] = not link_model == "dynamic" and env.ToolchainIs(
+ 'gcc', 'clang') and env.CheckCCFLAGSSupported('-gsplit-dwarf')
if env['SPLIT_DWARF']:
if env.ToolchainIs('gcc', 'clang'):