Fix wrong compile flag on Windows for pip (packages will now be compiled for AVX2)

This commit is contained in:
Matthias Hochsteger 2024-03-19 20:07:06 +01:00
parent 9cd533fbac
commit fb6a34f7c9

View File

@ -49,7 +49,7 @@ if 'NETGEN_ARCH' in os.environ and os.environ['NETGEN_ARCH'] == 'avx2':
if 'darwin' in sys.platform:
flag = "'-Xarch_x86_64;-march=core-avx2'"
elif 'win' in sys.platform:
flag = '/AVX2'
flag = '/arch:AVX2'
else:
flag = '-march=core-avx2'
cmake_args += [f'-DNG_COMPILE_FLAGS={flag}']