Revert "[docs] update CI to use latest release of doxygen" (#202412)

Reverts llvm/llvm-project#191501 as cmake CI is having an issue with it:

```
-- Doxygen enabled (1.14.0).
CMake Error at /work/as-worker-4/publish-doxygen-docs/llvm-project/cmake/Modules/HandleDoxygen.cmake:29 (add_custom_target):
  add_custom_target cannot create target "doxygen" because another target
  with the same name already exists.  The existing target is a custom target
  created in source directory
  "/work/as-worker-4/publish-doxygen-docs/llvm-project/llvm".  See
  documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  docs/CMakeLists.txt:59 (include)
```
This commit is contained in:
Jameson Nash 2026-06-08 15:28:03 -04:00 committed by GitHub
parent 5d2cc4dc17
commit 50088e2275
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 20 additions and 59 deletions

View file

@ -93,18 +93,13 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y \
doxygen \
graphviz \
python3-github \
ninja-build \
texlive-font-utils
pip3 install --require-hashes --user -r ./llvm/docs/requirements.txt
- name: Install Doxygen
run: |
curl -L https://github.com/doxygen/doxygen/releases/download/Release_1_17_0/doxygen-1.17.0.linux.bin.tar.gz -o doxygen.tar.gz
tar -xf doxygen.tar.gz
sudo install -m 755 doxygen-1.17.0/bin/doxygen /usr/local/bin/doxygen
- name: Build Doxygen
env:
RELEASE_VERSION: ${{ inputs.release-version }}

View file

@ -48,8 +48,8 @@ if (LLVM_ENABLE_DOXYGEN)
set(bolt_doxygen_qhp_cust_filter_attrs "")
endif()
include(HandleDoxygen)
llvm_configure_doxygen()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doxygen.cfg.in
${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg @ONLY)
set(abs_top_srcdir)
set(abs_top_builddir)

View file

@ -392,8 +392,6 @@ LOOKUP_CACHE_SIZE = 0
# Build related configuration options
#---------------------------------------------------------------------------
NUM_PROC_THREADS = @DOXYGEN_NUM_PROC_THREADS@
# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
# documentation are documented, even if no documentation was available. Private
# class members and static file members will be hidden unless the

View file

@ -46,8 +46,8 @@ if (DOXYGEN_FOUND)
set(clang_tools_doxygen_qhp_cust_filter_attrs "")
endif()
include(HandleDoxygen)
llvm_configure_doxygen()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doxygen.cfg.in
${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg @ONLY)
set(abs_top_srcdir)
set(abs_top_builddir)

View file

@ -390,8 +390,6 @@ LOOKUP_CACHE_SIZE = 2
# Build related configuration options
#---------------------------------------------------------------------------
NUM_PROC_THREADS = @DOXYGEN_NUM_PROC_THREADS@
# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
# documentation are documented, even if no documentation was available. Private
# class members and static file members will be hidden unless the

View file

@ -47,8 +47,8 @@ if (LLVM_ENABLE_DOXYGEN)
set(clang_doxygen_qhp_cust_filter_attrs "")
endif()
include(HandleDoxygen)
llvm_configure_doxygen()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doxygen.cfg.in
${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg @ONLY)
set(abs_top_srcdir)
set(abs_top_builddir)

View file

@ -390,8 +390,6 @@ LOOKUP_CACHE_SIZE = 3
# Build related configuration options
#---------------------------------------------------------------------------
NUM_PROC_THREADS = @DOXYGEN_NUM_PROC_THREADS@
# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
# documentation are documented, even if no documentation was available. Private
# class members and static file members will be hidden unless the

View file

@ -17,9 +17,9 @@ function(llvm_find_program name)
endfunction()
if (LLVM_ENABLE_DOXYGEN)
message(STATUS "Doxygen enabled.")
llvm_find_program(dot)
find_package(Doxygen REQUIRED)
message(STATUS "Doxygen enabled (${DOXYGEN_VERSION}).")
if (DOXYGEN_FOUND)
# If we find doxygen and we want to enable doxygen by default create a
@ -35,22 +35,6 @@ if (LLVM_ENABLE_DOXYGEN)
set(LLVM_DOXYGEN_SEARCH_MAPPINGS "" CACHE STRING "Doxygen Search Mappings")
endif()
endif()
# Uses all CPUs for doxygen >= 1.17 where multi-threading is fast, and
# single-threaded (1) for older versions where multi-threading is slower than
# single-threaded.
if (DOXYGEN_VERSION VERSION_GREATER_EQUAL "1.17")
set(DOXYGEN_NUM_PROC_THREADS 0)
else()
set(DOXYGEN_NUM_PROC_THREADS 1)
endif()
else()
message(STATUS "Doxygen disabled.")
endif()
# Configure doxygen.cfg.in -> doxygen.cfg, using a macro here to ensure that
# DOXYGEN_NUM_PROC_THREADS has been set.
macro(llvm_configure_doxygen)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doxygen.cfg.in
${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg @ONLY)
endmacro()

View file

@ -48,8 +48,8 @@ if (LLVM_ENABLE_DOXYGEN)
set(flang_doxygen_qhp_cust_filter_attrs "")
endif()
include(HandleDoxygen)
llvm_configure_doxygen()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doxygen.cfg.in
${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg @ONLY)
set(abs_top_srcdir)
set(abs_top_builddir)

View file

@ -392,8 +392,6 @@ LOOKUP_CACHE_SIZE = 0
# Build related configuration options
#---------------------------------------------------------------------------
NUM_PROC_THREADS = @DOXYGEN_NUM_PROC_THREADS@
# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
# documentation are documented, even if no documentation was available. Private
# class members and static file members will be hidden unless the

View file

@ -5,8 +5,8 @@ if(DOXYGEN_FOUND)
set(DOT dot)
set(PACKAGE_VERSION mainline)
set(abs_top_builddir ..)
include(HandleDoxygen)
llvm_configure_doxygen()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doxygen.cfg.in
${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg @ONLY)
add_custom_target(lldb-cpp-doc
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg

View file

@ -293,8 +293,6 @@ SYMBOL_CACHE_SIZE = 0
# Build related configuration options
#---------------------------------------------------------------------------
NUM_PROC_THREADS = @DOXYGEN_NUM_PROC_THREADS@
# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
# documentation are documented, even if no documentation was available.
# Private class members and static file members will be hidden unless

View file

@ -56,8 +56,8 @@ if (LLVM_ENABLE_DOXYGEN)
set(llvm_doxygen_qhp_cust_filter_attrs "")
endif()
include(HandleDoxygen)
llvm_configure_doxygen()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doxygen.cfg.in
${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg @ONLY)
set(abs_top_srcdir)
set(abs_top_builddir)

View file

@ -391,8 +391,6 @@ LOOKUP_CACHE_SIZE = 4
# Build related configuration options
#---------------------------------------------------------------------------
NUM_PROC_THREADS = @DOXYGEN_NUM_PROC_THREADS@
# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
# documentation are documented, even if no documentation was available. Private
# class members and static file members will be hidden unless the

View file

@ -47,8 +47,8 @@ if (LLVM_ENABLE_DOXYGEN)
set(mlir_doxygen_qhp_cust_filter_attrs "")
endif()
include(HandleDoxygen)
llvm_configure_doxygen()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doxygen.cfg.in
${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg @ONLY)
set(abs_top_srcdir)
set(abs_top_builddir)

View file

@ -391,8 +391,6 @@ LOOKUP_CACHE_SIZE = 4
# Build related configuration options
#---------------------------------------------------------------------------
NUM_PROC_THREADS = @DOXYGEN_NUM_PROC_THREADS@
# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
# documentation are documented, even if no documentation was available. Private
# class members and static file members will be hidden unless the

View file

@ -47,8 +47,8 @@ if (LLVM_ENABLE_DOXYGEN)
set(openmp_doxygen_qhp_cust_filter_attrs "")
endif()
include(HandleDoxygen)
llvm_configure_doxygen()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doxygen.cfg.in
${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg @ONLY)
set(abs_top_srcdir)
set(abs_top_builddir)

View file

@ -390,8 +390,6 @@ LOOKUP_CACHE_SIZE = 3
# Build related configuration options
#---------------------------------------------------------------------------
NUM_PROC_THREADS = @DOXYGEN_NUM_PROC_THREADS@
# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
# documentation are documented, even if no documentation was available. Private
# class members and static file members will be hidden unless the

View file

@ -46,8 +46,8 @@ if (LLVM_ENABLE_DOXYGEN)
set(polly_doxygen_qhp_cust_filter_attrs "")
endif()
include(HandleDoxygen)
llvm_configure_doxygen()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doxygen.cfg.in
${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg @ONLY)
set(abs_top_srcdir)
set(abs_top_builddir)

View file

@ -390,8 +390,6 @@ LOOKUP_CACHE_SIZE = 2
# Build related configuration options
#---------------------------------------------------------------------------
NUM_PROC_THREADS = @DOXYGEN_NUM_PROC_THREADS@
# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
# documentation are documented, even if no documentation was available. Private
# class members and static file members will be hidden unless the