summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct7
1 files changed, 5 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index 6b8454a9666..60376affc5e 100644
--- a/SConstruct
+++ b/SConstruct
@@ -707,8 +707,6 @@ if nix:
# env.Append( " -Wconversion" ) TODO: this doesn't really work yet
if linux or darwin:
env.Append( CCFLAGS=["-Werror", "-pipe"] )
- # Don't make deprecated declarations errors.
- env.Append( CCFLAGS=["-Wno-error=deprecated-declarations"] )
env.Append( CPPDEFINES=["_FILE_OFFSET_BITS=64"] )
env.Append( CXXFLAGS=["-Wnon-virtual-dtor", "-Woverloaded-virtual"] )
@@ -957,6 +955,11 @@ def doConfigure(myenv):
if nix and linux:
AddToCCFLAGSIfSupported(myenv, "-fno-builtin-memcmp")
+ # Really, should be if using gcc or clang.
+ if linux or darwin:
+ # If possible, don't make deprecated declarations errors.
+ AddToCCFLAGSIfSupported(myenv, "-Wno-error=deprecated-declarations")
+
conf = Configure(myenv)
if use_system_version_of_library("boost"):