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 18:28:36 +0000 |
commit | 96cdc44b67a7f1aa848400888d8e29acf6c9bc3f (patch) | |
tree | a8531bf08ba4aa5375394c3601afd0a0e12c33e9 | |
parent | e810b3d11d7554fd71ac4e800c31757b033ab039 (diff) | |
download | mongo-96cdc44b67a7f1aa848400888d8e29acf6c9bc3f.tar.gz |
SERVER-68475 only use custom configure check with gcc and clang.
(cherry picked from commit 53aa9bec47e34bd010b5dc6b751474c74c3a1797)
-rwxr-xr-x | SConstruct | 3 |
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') |