mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
Build with '-fno-stack-check' on MacOS if USE_NATIVE_ACH=ON
XCode 11.3 introduced a bug with stack alignment if AVX is activated: https://forums.developer.apple.com/thread/121887 According to the link, '-fno-stack-check' circumvents this problem
This commit is contained in:
parent
ce90bd9e83
commit
a5ffcb73c1
@ -447,6 +447,10 @@ if(USE_NATIVE_ARCH)
|
||||
else()
|
||||
target_compile_options(ngcore PUBLIC "-march=native")
|
||||
endif(WIN32)
|
||||
if(APPLE)
|
||||
# work-around for bug in Xcode 11.3: https://forums.developer.apple.com/thread/121887
|
||||
target_compile_options(ngcore PUBLIC "-fno-stack-check")
|
||||
endif(APPLE)
|
||||
endif(USE_NATIVE_ARCH)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user