From 89416fb9555141da41b1a45975b4eaf8b6f9189b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 8 Aug 2012 21:14:20 +0000 Subject: Update to r74/autowaf (Add autowaf.set_c99_mode()). git-svn-id: http://svn.drobilla.net/lad/trunk/sratom@4625 a436a847-0d15-0410-975c-d299462d15a1 --- waf | Bin 72475 -> 94174 bytes wscript | 10 +++------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/waf b/waf index 62ab137..45a6f80 100755 Binary files a/waf and b/waf differ diff --git a/wscript b/wscript index 5f0b4c2..20d521a 100644 --- a/wscript +++ b/wscript @@ -35,13 +35,9 @@ def options(opt): def configure(conf): conf.load('compiler_c') autowaf.configure(conf) + autowaf.set_c99_mode(conf) autowaf.display_header('Sratom Configuration') - if conf.env.MSVC_COMPILER: - conf.env.append_unique('CFLAGS', ['-TP', '-MD']) - else: - conf.env.append_unique('CFLAGS', '-std=c99') - conf.env.BUILD_TESTS = Options.options.build_tests conf.env.BUILD_STATIC = Options.options.static @@ -75,8 +71,8 @@ def build(bld): ['SERD', 'SORD', 'LV2'], {'SRATOM_MAJOR_VERSION' : SRATOM_MAJOR_VERSION}) - libflags = [ '-fvisibility=hidden' ] - libs = [ 'm' ] + libflags = ['-fvisibility=hidden'] + libs = ['m'] defines = [] if bld.env.MSVC_COMPILER: libflags = [] -- cgit v1.2.1