Skip to content

Commit 36c7da4

Browse files
committed
Error on unguarded-availability during macOS builds
1 parent f802c8b commit 36c7da4

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

configure

+40
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

+6
Original file line numberDiff line numberDiff line change
@@ -2603,6 +2603,12 @@ AS_VAR_IF([ac_cv_gcc_compat], [yes], [
26032603
esac
26042604
AC_MSG_RESULT([$CC])
26052605
2606+
# Error on use of new symbols
2607+
AX_CHECK_COMPILE_FLAG([-Wunguarded-availability],
2608+
[AS_VAR_APPEND([CFLAGS], [" -Werror=unguarded-availability"])],
2609+
[],
2610+
[-Werror]) # Use -Werror when testing the flag
2611+
26062612
LIPO_INTEL64_FLAGS=""
26072613
if test "${enable_universalsdk}"
26082614
then

0 commit comments

Comments
 (0)