diff options
author | Daniel Moody <daniel.moody@mongodb.com> | 2022-08-29 09:35:51 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-29 16:02:24 +0000 |
commit | 53aa9bec47e34bd010b5dc6b751474c74c3a1797 (patch) | |
tree | aa41a9569dab2b8c7ec11e63e22fdb64bf2bc023 /SConstruct | |
parent | 9e38bb05766a84765a1db547a137c7c64f09f217 (diff) | |
download | mongo-53aa9bec47e34bd010b5dc6b751474c74c3a1797.tar.gz |
SERVER-68475 only use custom configure check with gcc and clang.
Diffstat (limited to 'SConstruct')
-rwxr-xr-x | SConstruct | 3 |
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'): |