1 From a1fb301a0b9b59f420454be1ebeb05ce0547da2c Mon Sep 17 00:00:00 2001
2 From: OPNA2608 <opna2608@protonmail.com>
3 Date: Fri, 6 Sep 2024 14:20:05 +0200
4 Subject: [PATCH] Patch includedir for libclang main header
7 src/qdoc/configure.pri | 4 ++--
8 1 file changed, 2 insertions(+), 2 deletions(-)
10 diff --git a/src/qdoc/configure.pri b/src/qdoc/configure.pri
11 index 4f3d77603..8fe8bc439 100644
12 --- a/src/qdoc/configure.pri
13 +++ b/src/qdoc/configure.pri
14 @@ -71,7 +71,7 @@ defineTest(qtConfTest_libclang) {
15 LLVM_INSTALL_DIR = $$system("$$candidate --prefix 2>$$QMAKE_SYSTEM_NULL_DEVICE")
16 !isEmpty(LLVM_INSTALL_DIR) {
17 CLANG_INCLUDEPATH = $$system("$$candidate --includedir 2>/dev/null")
18 - LIBCLANG_MAIN_HEADER = $$CLANG_INCLUDEPATH/clang-c/Index.h
19 + LIBCLANG_MAIN_HEADER = @libclangDev@/include/clang-c/Index.h
20 !exists($$LIBCLANG_MAIN_HEADER) {
21 !isEmpty(LLVM_INSTALL_DIR): \
22 qtLog("Cannot find libclang's main header file, candidate: $${LIBCLANG_MAIN_HEADER}.")
23 @@ -121,7 +121,7 @@ defineTest(qtConfTest_libclang) {
27 - LIBCLANG_MAIN_HEADER = $$CLANG_INCLUDEPATH/clang-c/Index.h
28 + LIBCLANG_MAIN_HEADER = @libclangDev@/include/clang-c/Index.h
29 !exists($$LIBCLANG_MAIN_HEADER) {
30 !isEmpty(LLVM_INSTALL_DIR): \
31 qtLog("Cannot find libclang's main header file, candidate: $${LIBCLANG_MAIN_HEADER}.")