Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Gramner <gramner@twoorioles.com>2019-10-25 20:47:21 +0300
committerHenrik Gramner <gramner@twoorioles.com>2019-10-25 22:38:21 +0300
commitbb160f09fa7ad132f4b6a014ac8e168b913ee3ab (patch)
tree26efdf421456e031c5501cb4c1bd4fcc1899be7e
parentfc54119cc0aeae96184bb4d18a2aef4c69f1a0fd (diff)
build: Add a workaround for Xcode 11 -fstack-check bug0.5.1
-rw-r--r--NEWS1
-rw-r--r--meson.build6
2 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 0a26c73..9b55cd0 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,7 @@ compared to 0.5.0:
- 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':
diff --git a/meson.build b/meson.build
index 12c171c..113c30f 100644
--- a/meson.build
+++ b/meson.build
@@ -215,6 +215,12 @@ if (get_option('buildtype') != 'debug' and get_option('buildtype') != 'plain')
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