diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2024-01-07 11:32:51 +0000 |
---|---|---|
committer | glozow <gloriajzhao@gmail.com> | 2024-02-16 17:28:33 +0000 |
commit | 72eab1ca64071efde811e0b3886dcf253c6780d2 (patch) | |
tree | ceb55aa44e3d3a98262d19cb21cd192a2153bc8d | |
parent | 74df372750ceb4ccdfe310e18f14cdd3abac4a51 (diff) |
build: Fix `-Xclang -internal-isystem` option
LLVM Clang >=16.0 and Apple Clang >=15.0 do not recognize
`-Xclang -internal-isystem/usr/local/include` anymore.
For example, see: https://github.com/llvm/llvm-project/commit/cbbe1d44546db52c71c9a2b18f85b87ae82df9e7
Github-Pull: #29195
Rebased-From: 8decc5c726caca2381cffbd1b3585862421f5b8e
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 01636ab872..b1bdf00e4d 100644 --- a/configure.ac +++ b/configure.ac @@ -755,7 +755,7 @@ case $host in dnl option to system-ify all /usr/local/include paths without adding it to the list dnl of search paths in case it's not already there. 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]) + AX_CHECK_PREPROC_FLAG([-Xclang -internal-isystem -Xclang /usr/local/include/], [CORE_CPPFLAGS="$CORE_CPPFLAGS -Xclang -internal-isystem -Xclang /usr/local/include/"], [], [$CXXFLAG_WERROR]) fi if test "$use_bdb" != "no" && $BREW list --versions berkeley-db@4 >/dev/null && test "$BDB_CFLAGS" = "" && test "$BDB_LIBS" = ""; then |