-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
Description
Apple Clang 15 does not support -Xclang -internal-isystem anymore. On both x86_64 and arm64 platforms, the following check:
Lines 742 to 744 in 65c05db
| if test "$suppress_external_warnings" != "no"; then | |
| AX_CHECK_PREPROC_FLAG([-Xclang -internal-isystem/usr/local/include], [CORE_CPPFLAGS="$CORE_CPPFLAGS -Xclang -internal-isystem/usr/local/include"], [], [$CXXFLAG_WERROR]) | |
| fi |
fails with
error: unknown argument: '-internal-isystem/usr/local/include'.
It makes the --enable-suppress-external-warnings option not working for dependency packages installed by Homebrew and linked to /usr/local, which happens for all non-keg packages on x86_64. There is no such an effect on arm64.
For a related discussion refer to #29165 (comment).
RandyMcMillan