aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-04-19 19:33:49 +0200
committerDavid Robillard <d@drobilla.net>2020-04-19 19:33:49 +0200
commit256e75d9151ff88243f7e91cca091549dd4a6315 (patch)
tree9da7ec82beb6f93df4e7fb42a47086099a60a16b /wscript
parentd26436acac4d3faae3e1959d80d65bfef3585e20 (diff)
downloadpugl-256e75d9151ff88243f7e91cca091549dd4a6315.tar.gz
pugl-256e75d9151ff88243f7e91cca091549dd4a6315.tar.bz2
pugl-256e75d9151ff88243f7e91cca091549dd4a6315.zip
Clean up Mac flags
Diffstat (limited to 'wscript')
-rw-r--r--wscript7
1 files changed, 2 insertions, 5 deletions
diff --git a/wscript b/wscript
index 4cea015..8385e40 100644
--- a/wscript
+++ b/wscript
@@ -60,9 +60,6 @@ def configure(conf):
conf.env.append_value('CFLAGS', flags)
conf.env.append_value('CXXFLAGS', flags)
- if platform == 'darwin':
- append_cflags(['-Wno-deprecated-declarations'])
-
if conf.env.MSVC_COMPILER:
append_cflags(['/wd4191', '/wd4355'])
else:
@@ -72,8 +69,8 @@ def configure(conf):
append_cflags(['-Wunused-parameter', '-Wno-pedantic'])
if conf.env.TARGET_PLATFORM == 'darwin':
- conf.env.append_unique('CFLAGS', ['-DGL_SILENCE_DEPRECATION'])
- conf.env.append_unique('CXXFLAGS', ['-DGL_SILENCE_DEPRECATION'])
+ append_cflags(['-DGL_SILENCE_DEPRECATION',
+ '-Wno-deprecated-declarations'])
if Options.options.ultra_strict and 'clang' in conf.env.CC:
for var in ['CFLAGS', 'CXXFLAGS']: