diff options
author | Geert Bosch <geert@mongodb.com> | 2017-11-08 11:35:46 -0500 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2018-01-03 18:50:43 -0500 |
commit | 201fb860e1ba6dd43e12f0dd30d7af31852a3796 (patch) | |
tree | 2d658d71faf06cf3b65229d19ffea1eee892e548 | |
parent | c2f69b7c04f92ec98afe910bc2046c0532be49a7 (diff) | |
download | mongo-201fb860e1ba6dd43e12f0dd30d7af31852a3796.tar.gz |
SERVER-31875 Do not dedupe symbols on OS X debug builds
(cherry picked from commit 1855ca00728b3dfebe607af5c5e396976abc1f68)
-rw-r--r-- | SConstruct | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index fe7975be817..f949f654756 100644 --- a/SConstruct +++ b/SConstruct @@ -2484,6 +2484,10 @@ def doConfigure(myenv): # If possible with the current linker, mark relocations as read-only. AddToLINKFLAGSIfSupported(myenv, "-Wl,-z,relro") + # Avoid deduping symbols on OS X debug builds, as it takes a long time. + if not optBuild and myenv.ToolchainIs('clang') and env.TargetOSIs('darwin'): + AddToLINKFLAGSIfSupported(myenv, "-Wl,-no_deduplicate") + # Apply any link time optimization settings as selected by the 'lto' option. if has_option('lto'): if myenv.ToolchainIs('msvc'): |