From cefbb6db327e5c16ca215ed3c5efc39e30a3036f Mon Sep 17 00:00:00 2001 From: EZ4Stephen Date: Fri, 12 Dec 2025 20:56:14 +0400 Subject: [PATCH] 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' --- libs/fluidsynth/wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/fluidsynth/wscript b/libs/fluidsynth/wscript index e3f9f0baeb..dbf4fa97a3 100644 --- a/libs/fluidsynth/wscript +++ b/libs/fluidsynth/wscript @@ -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',