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:
Matthias Hochsteger 2020-01-17 13:09:44 +01:00
parent ce90bd9e83
commit a5ffcb73c1

View File

@ -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)