From c52e8b7dc77c5fa0719667f2ebaacd3a434e3054 Mon Sep 17 00:00:00 2001 From: EZ4Stephen Date: Sat, 13 Dec 2025 10:42:11 +0400 Subject: [PATCH] Update zita-convolver's cxxflags for MSVC Previously: cl : Command line warning D9002 : ignoring unknown option '-fPIC' cl : Command line warning D9002 : ignoring unknown option '-O3' cl : Command line warning D9002 : ignoring unknown option '-ffast-math' cl : Command line warning D9002 : ignoring unknown option '-funroll-loops' --- libs/zita-convolver/wscript | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/zita-convolver/wscript b/libs/zita-convolver/wscript index cef5601219..0b5e6d9fc1 100644 --- a/libs/zita-convolver/wscript +++ b/libs/zita-convolver/wscript @@ -23,7 +23,10 @@ def configure(conf): def build(bld): obj = bld.stlib(features = 'cxx cxxstlib', source = 'zita-convolver.cc') - obj.cxxflags = [ '-fPIC', '-O3', '-ffast-math', '-funroll-loops' ] + if bld.env['build_target'] != 'msvc': + obj.cxxflags = ['-fPIC', '-O3', '-ffast-math', '-funroll-loops'] + else: + obj.cxxflags = ['/O2', '/fp:fast'] obj.export_includes = ['.'] obj.includes = ['.'] obj.name = 'zita-convolver'