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 /meson.build
parentfc54119cc0aeae96184bb4d18a2aef4c69f1a0fd (diff)
build: Add a workaround for Xcode 11 -fstack-check bug0.5.1
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build6
1 files changed, 6 insertions, 0 deletions
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