diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2023-02-03 18:00:42 +0530 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2023-06-08 15:28:10 +0000 |
commit | 2b1827587d4c3f8aebc5247e209476d178392ecd (patch) | |
tree | 988680cc479f96deaa6e537699f04d1adf0e1b21 /config | |
parent | 83c682e28860a73da5aff5a208baf5ef0350616e (diff) |
darwin: Ensure errors on unguarded use of new APIs
APIs that are only available on newer macOS versions need to be
guarded with __builtin_available for a runtime check that won't load
the symbol at all on older OS versions.
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1115>
Diffstat (limited to 'config')
-rw-r--r-- | config/darwin.config | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/darwin.config b/config/darwin.config index 3f6fbe11..88c94743 100644 --- a/config/darwin.config +++ b/config/darwin.config @@ -74,7 +74,7 @@ elif target_arch == Architecture.ARM64: arch_cflags += ' -arch arm64 -m64' arch_ldflags += ' -arch arm64 -m64 -Wl,-arch,arm64' -arch_cflags += ' -Wno-error=format-nonliteral ' +arch_cflags += ' -Wno-error=format-nonliteral -Werror=unguarded-availability-new ' # Starting with XCode 14, clang emits code that makes all binaries incompatible # with older XCode versions. Disable that feature. arch_objcflags = '' |