From e46c6e66956d660598b99d4dbd3e801ed40e926e Mon Sep 17 00:00:00 2001 From: Hossein Date: Fri, 31 Oct 2025 11:27:55 +0100 Subject: [PATCH] Fix CLANGSYSINCLUDE check to match newer clang versions In older versions of clang, the path used was using full version, for example 12.0.1, but now we only use major version, which is 18. This change is generic and should be working for both cases. Discussion can be found in the patch to update linux_clang_dbgutil_64 to clang 18.1.8: https://gerrit.libreoffice.org/c/lode/+/182317/comments/57f1490c_72bbd109 Change-Id: I67614b9ed88ff73c0a15b13b350c9cb4a79906b0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193256 Tested-by: Jenkins Reviewed-by: Hossein --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 60ca6bd52f5a..2bc45d9887d1 100644 --- a/configure.ac +++ b/configure.ac @@ -9019,7 +9019,7 @@ if test "$COM_IS_CLANG" = "TRUE"; then if test -z "$CLANGSYSINCLUDE"; then if test -n "$LLVM_CONFIG"; then # Path to the clang system headers (no idea if there's a better way to get it). - CLANGSYSINCLUDE=$($LLVM_CONFIG --libdir)/clang/$($LLVM_CONFIG --version | sed 's/git\|svn//')/include + CLANGSYSINCLUDE=$(ls -d $($LLVM_CONFIG --libdir)/clang/*/include) fi fi fi