-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-100384: Error on unguarded-availability
in Darwin builds
#128155
Changes from 2 commits
6fd3184
0f4b63e
2ddda3a
24ee4a7
88ea223
dcbd9a6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Error on ``unguarded-availability-new`` in Darwin builds, preventing invalid | ||
use of symbols that are not available in older versions of the OS. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2603,6 +2603,13 @@ AS_VAR_IF([ac_cv_gcc_compat], [yes], [ | |
esac | ||
AC_MSG_RESULT([$CC]) | ||
# Error on unguarded use of new symbols, which will fail at runtime for | ||
# users on older versions of macOS | ||
AX_CHECK_COMPILE_FLAG([-Wunguarded-availability-new], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As noted elsewhere, I think we should use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done in 2ddda3a. This did not change the output on my machine. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (or in CI) |
||
[AS_VAR_APPEND([CFLAGS_NODIST], [" -Werror=unguarded-availability-new"])], | ||
[], | ||
[-Werror]) | ||
LIPO_INTEL64_FLAGS="" | ||
if test "${enable_universalsdk}" | ||
then | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unguarded-availability-new
->unguarded-availability
Darwin
->macOS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! 88ea223