summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2017-11-08 11:35:46 -0500
committerGeert Bosch <geert@mongodb.com>2017-11-17 14:13:25 -0500
commit1855ca00728b3dfebe607af5c5e396976abc1f68 (patch)
tree80ad323c74d9b8f61e24d6344b51cb2020ecebfc /SConstruct
parentd303ef9ba44fb7dfeb41c8b975e761c184d1d4b5 (diff)
downloadmongo-1855ca00728b3dfebe607af5c5e396976abc1f68.tar.gz
SERVER-31875 Do not dedupe symbols on OS X debug builds
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
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'):