Skip to content

Commit 30b8fa3

Browse files
looplesschennes
authored andcommitted
Disable use of AVX compiler option
if the build machine is , say, AVX512 compatible then unless the option USE_NATIVE_ARCH is OFF cmake will generate compiler options /arch:AVX512 on Win32 and -march=native for other x86_64 systems This will cause an illegal instruction if the build is run on non AVX512 capable machines.
1 parent 5f97ff7 commit 30b8fa3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

compile_all.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,6 +1104,7 @@ def build_netgen(self, _: None):
11041104
"-D USE_SUPERBUILD=OFF",
11051105
"-D USE_GUI=OFF",
11061106
"-D USE_INTERNAL_TCL=OFF",
1107+
"-D USE_NATIVE_ARCH=OFF",
11071108
f"-D TCL_DIR={self.install_dir}",
11081109
f"-D TK_DIR={self.install_dir}",
11091110
"-D USE_OCC=On",

0 commit comments

Comments
 (0)