SHA256
1
0
forked from pool/doxygen
doxygen/doxygen-no-libclang-cpp.patch
Petr Gajdos ad2f9c1fe6 Accepting request 841435 from home:fsirl:doxygen-libclang
This request does 2 things:

1. The doxygen/doxywizard C++ code in doxygen-1.8.20 triggers GCC bug 85180, leading to exorbitant compile times. This bug was fixed for GCC-8, but not backported to GCC-7 (also not included in the SUSE gcc7 package).
Workaround this bug by using the gcc9 package on SLE15 based distributions.

2. Adjust the libclang support to the changes in doxygen-1.8.20. This also disables libclang support for SLES15GA, because clang on SLES15GA is not compatible.

OBS-URL: https://build.opensuse.org/request/show/841435
OBS-URL: https://build.opensuse.org/package/show/devel:tools/doxygen?expand=0&rev=156
2020-10-13 08:42:23 +00:00

12 lines
502 B
Diff

--- doxygen-1.8.20/src/CMakeLists.txt.orig 2020-10-06 15:56:02.841527965 +0200
+++ doxygen-1.8.20/src/CMakeLists.txt 2020-10-06 16:07:14.226206979 +0200
@@ -341,7 +341,7 @@
set(CLANG_LIBS libclang clangTooling)
else() # dynamically linked version of clang
llvm_config(doxymain USE_SHARED support)
- set(CLANG_LIBS libclang clang-cpp)
+ set(CLANG_LIBS libclang clangTooling)
endif()
target_compile_definitions(doxygen PRIVATE ${LLVM_DEFINITIONS})
endif()