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 18:28:36 +0000
commit96cdc44b67a7f1aa848400888d8e29acf6c9bc3f (patch)
treea8531bf08ba4aa5375394c3601afd0a0e12c33e9 /SConstruct
parente810b3d11d7554fd71ac4e800c31757b033ab039 (diff)
downloadmongo-96cdc44b67a7f1aa848400888d8e29acf6c9bc3f.tar.gz
SERVER-68475 only use custom configure check with gcc and clang.
(cherry picked from commit 53aa9bec47e34bd010b5dc6b751474c74c3a1797)
Diffstat (limited to 'SConstruct')
-rwxr-xr-xSConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index c762965008c..3a1bdd30392 100755
--- a/SConstruct
+++ b/SConstruct
@@ -5497,7 +5497,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']:
env.Tool('split_dwarf')