Adjust fluidsynth cflags to compile with MSVC
Previously: cl : Command line error D8021 : invalid numeric argument '/Wno-unused-function' And after separating that: cl : Command line warning D9002 : ignoring unknown option '-fvisibility=hidden' cl : Command line warning D9002 : ignoring unknown option '-std=gnu99'
This commit is contained in:
@@ -52,7 +52,7 @@ def build(bld):
|
||||
'src/fluid_synth_monopoly.c',
|
||||
'src/fluid_sys.c'
|
||||
],
|
||||
cflags = [ bld.env['compiler_flags_dict']['pic'], '-fvisibility=hidden', '-std=gnu99', '-Wno-unused-function' ],
|
||||
cflags = [ bld.env['compiler_flags_dict']['pic'], '-fvisibility=hidden', '-std=gnu99'] + (['-Wno-unused-function'] if bld.env['build_target'] != 'msvc' else []),
|
||||
includes = ['.', 'src/' ],
|
||||
target = 'libfluidsynth',
|
||||
use = 'libfluidsynth_includes',
|
||||
|
||||
Reference in New Issue
Block a user