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'
This commit is contained in:
EZ4Stephen 2025-12-13 10:42:11 +04:00 committed by Robin Gareus
parent c76f13d6ab
commit c52e8b7dc7
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -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'