ref: bb160f09fa7ad132f4b6a014ac8e168b913ee3ab
parent: fc54119cc0aeae96184bb4d18a2aef4c69f1a0fd
author: Henrik Gramner <gramner@twoorioles.com>
date: Fri Oct 25 15:47:21 EDT 2019
build: Add a workaround for Xcode 11 -fstack-check bug
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,7 @@
- NEON optimizations for SGR on ARM32
- Fix mismatch issue in x86 asm in inverse identity transforms
- Fix build issue in ARM64 assembly if debug info was enabled
+ - Add a workaround for Xcode 11 -fstack-check bug
Changes for 0.5.0 'Asiatic Cheetah':
--- a/meson.build
+++ b/meson.build
@@ -215,6 +215,12 @@
optional_arguments += '-ffast-math'
endif
+if (host_machine.system() == 'darwin' and cc.get_id() == 'clang' and
+ cc.version().startswith('11'))
+ # Workaround for Xcode 11 -fstack-check bug, see #301
+ optional_arguments += '-fno-stack-check'
+endif
+
add_project_arguments(cc.get_supported_arguments(optional_arguments), language : 'c')
# libFuzzer related things