[flang-commits] [flang] 8d6f61b - Revert "[Flang] Use find_program() to find clang-tblgen"

Nikita Popov via flang-commits flang-commits at lists.llvm.org
Wed Aug 10 02:39:37 PDT 2022


Author: Nikita Popov
Date: 2022-08-10T11:39:31+02:00
New Revision: 8d6f61b6ad71290ad5e99a78843e237486cd2488

URL: https://github.com/llvm/llvm-project/commit/8d6f61b6ad71290ad5e99a78843e237486cd2488
DIFF: https://github.com/llvm/llvm-project/commit/8d6f61b6ad71290ad5e99a78843e237486cd2488.diff

LOG: Revert "[Flang] Use find_program() to find clang-tblgen"

This reverts commit 3bba12a81e242359580fa322cf1a9a0a43b461e6.

While this fixes doc generation in standalone flang builds, it
breaks them for combined builds of clang and flang.

Added: 
    

Modified: 
    flang/docs/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/flang/docs/CMakeLists.txt b/flang/docs/CMakeLists.txt
index 3414b8e3acc46..770343cd29b80 100644
--- a/flang/docs/CMakeLists.txt
+++ b/flang/docs/CMakeLists.txt
@@ -126,7 +126,7 @@ if (LLVM_ENABLE_SPHINX)
         ARGS ${CMAKE_CURRENT_BINARY_DIR}/Source/FIR/CreateFIRLangRef.py)
 
       # CLANG_TABLEGEN_EXE variable needs to be set for clang_tablegen to run without error
-      find_program(CLANG_TABLEGEN_EXE "clang-tblgen" ${LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH)
+      set(CLANG_TABLEGEN_EXE clang-tblgen)
       gen_rst_file_from_td(FlangCommandLineReference.rst -gen-opt-docs FlangOptionsDocs.td docs-flang-html)
     endif()
     if (${SPHINX_OUTPUT_MAN})


        


More information about the flang-commits mailing list