Skip to content

Commit 0c9f872

Browse files
committed
fix flags on windows builds
1 parent 64e09f6 commit 0c9f872

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

meson.build

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ if cc.get_argument_syntax() == 'msvc'
4747
link_args = ['/NXCompat', '/DynamicBase']
4848

4949
if cc.get_id().startswith('intel')
50-
c_args += ['Qimf-precision=high', '/Qprotect-parens']
50+
c_args += [
51+
'/Qimf-precision=high', '/Qprotect-parens', '/clang:-fveclib=SVML'
52+
]
5153
endif
5254
elif cc.get_argument_syntax() == 'gcc'
5355
c_args += [
@@ -61,7 +63,10 @@ elif cc.get_argument_syntax() == 'gcc'
6163
]
6264
link_args += ['-Wl,-z,noexecstack', '-Wl,-z,relro', '-Wl,-z,now']
6365
if cc.get_id().startswith('intel')
64-
c_args += ['-fimf-precision=high', '-fprotect-parens']
66+
c_args += [
67+
'-fimf-precision=high', '-fprotect-parens', '-fveclib=SVML',
68+
'-fvectorize'
69+
]
6570
endif
6671
else
6772
error('Unsupported system.')

0 commit comments

Comments
 (0)