aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-21 14:48:23 +0200
committerDavid Robillard <d@drobilla.net>2020-10-21 15:43:29 +0200
commitd678291f48f5f5f300ceb0e87baf3894b58fac3e (patch)
tree886b76efb483f902759ac63b5f58656c28e75878 /wscript
parent968289f731d2af02670e0c33bc8c88f5f324caa7 (diff)
downloadpugl-d678291f48f5f5f300ceb0e87baf3894b58fac3e.tar.gz
pugl-d678291f48f5f5f300ceb0e87baf3894b58fac3e.tar.bz2
pugl-d678291f48f5f5f300ceb0e87baf3894b58fac3e.zip
Fix building with clang on Windows
Diffstat (limited to 'wscript')
-rw-r--r--wscript7
1 files changed, 6 insertions, 1 deletions
diff --git a/wscript b/wscript
index 5fa55c3..a5c86bf 100644
--- a/wscript
+++ b/wscript
@@ -131,6 +131,9 @@ def configure(conf):
'-Wno-conversion',
'-Wno-format',
'-Wno-suggest-attribute=format'],
+ 'clang': ['-D_CRT_SECURE_NO_WARNINGS',
+ '-Wno-format-nonliteral',
+ '-Wno-nonportable-system-include-path'],
})
elif conf.env.TARGET_PLATFORM == 'darwin':
autowaf.add_compiler_flags(conf.env, '*', {
@@ -311,7 +314,9 @@ def build(bld):
flags = []
if not bld.env.MSVC_COMPILER:
- flags = ['-fPIC', '-fvisibility=hidden']
+ flags = ['-fvisibility=hidden']
+ if bld.env.TARGET_PLATFORM != 'win32':
+ flags = ['-fPIC']
if bld.env.BUILD_SHARED:
bld(features = 'c cshlib',