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

This reverts commit 3bba12a81e.

While this fixes doc generation in standalone flang builds, it
breaks them for combined builds of clang and flang.
This commit is contained in:
Nikita Popov 2022-08-10 11:38:41 +02:00
parent 7e7860c5d7
commit 8d6f61b6ad
1 changed files with 1 additions and 1 deletions

View File

@ -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})