26 lines
974 B
Diff
26 lines
974 B
Diff
|
From de2d9020fd508494262c49ffe66dccdec741e917 Mon Sep 17 00:00:00 2001
|
||
|
From: Nikita Popov <npopov@redhat.com>
|
||
|
Date: Mon, 8 Aug 2022 12:40:49 +0200
|
||
|
Subject: [PATCH] Use find_program for clang-tblgen
|
||
|
|
||
|
---
|
||
|
flang/docs/CMakeLists.txt | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/flang/docs/CMakeLists.txt b/flang/docs/CMakeLists.txt
|
||
|
index 770343cd29b8..3414b8e3acc4 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
|
||
|
- set(CLANG_TABLEGEN_EXE clang-tblgen)
|
||
|
+ find_program(CLANG_TABLEGEN_EXE "clang-tblgen" ${LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH)
|
||
|
gen_rst_file_from_td(FlangCommandLineReference.rst -gen-opt-docs FlangOptionsDocs.td docs-flang-html)
|
||
|
endif()
|
||
|
if (${SPHINX_OUTPUT_MAN})
|
||
|
--
|
||
|
2.37.1
|
||
|
|