diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-02-27 09:24:35 -0500 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-02-28 11:58:12 -0500 |
commit | a9cf9dffdc4a320b5269876f8e4f00bd0cfb95d2 (patch) | |
tree | 06260ee985fd4f0510d564a7c3f52627c047ed22 /SConstruct | |
parent | 1927810547c7af41bcbcb93a9822438d381ee3cd (diff) | |
download | mongo-a9cf9dffdc4a320b5269876f8e4f00bd0cfb95d2.tar.gz |
SERVER-28133 --disable-warnings-as-errors should also apply to linker
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index 87407d777b9..f61e1f780ed 100644 --- a/SConstruct +++ b/SConstruct @@ -1671,7 +1671,7 @@ if env.TargetOSIs('posix'): # Promote linker warnings into errors. We can't yet do this on OS X because its linker considers # noall_load obsolete and warns about it. - if not env.TargetOSIs('darwin'): + if not env.TargetOSIs('darwin') and not has_option("disable-warnings-as-errors"): env.Append( LINKFLAGS=[ "-Wl,--fatal-warnings", |