Skip to content

Commit cfcb5ea

Browse files
committed
fix flags on windows builds
1 parent a85b078 commit cfcb5ea

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

meson.build

Lines changed: 7 additions & 5 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,15 +63,15 @@ 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.')
6873
endif
6974

70-
# vectorization flags
71-
c_args += ['-fveclib=SVML', '-fvectorize']
72-
7375
# dependencies
7476
tbb_dep = dependency('tbb', required: true)
7577

0 commit comments

Comments
 (0)