aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-04-19 19:46:44 +0200
committerDavid Robillard <d@drobilla.net>2020-04-19 19:46:44 +0200
commitc737df9c501200c1d997c916b74cd38edf115e1d (patch)
treeb54feff157ae1e1e9c63b3d1df3dc232813bc35b
parent14e959b06b5f167b0406772fc0ee8e2111eb4613 (diff)
downloadpugl-c737df9c501200c1d997c916b74cd38edf115e1d.tar.gz
pugl-c737df9c501200c1d997c916b74cd38edf115e1d.tar.bz2
pugl-c737df9c501200c1d997c916b74cd38edf115e1d.zip
Disable pedantic warnings only for shader demo (for GLAD)
-rw-r--r--wscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/wscript b/wscript
index bf4596d..38fe983 100644
--- a/wscript
+++ b/wscript
@@ -347,6 +347,7 @@ def build(bld):
target = 'shaders/%s' % s)
if bld.env.HAVE_GL:
+ glad_cflags = ['-Wno-pedantic'] if not bld.env.MSVC_COMPILER else []
build_example('pugl_embed_demo', ['examples/pugl_embed_demo.c'],
platform, 'gl', uselib=['GL', 'M'])
build_example('pugl_window_demo', ['examples/pugl_window_demo.c'],
@@ -357,7 +358,9 @@ def build(bld):
build_example('pugl_shader_demo',
['examples/pugl_shader_demo.c',
'examples/glad/glad.c'],
- platform, 'gl', uselib=['DL', 'GL', 'M'])
+ platform, 'gl',
+ cflags=glad_cflags,
+ uselib=['DL', 'GL', 'M'])
if bld.env.HAVE_CAIRO:
build_example('pugl_cairo_demo', ['examples/pugl_cairo_demo.c'],