[flang-commits] [flang] 2b49d36 - [flang][cmake] Separate FLANG_INCLUDE_TOOLS from FLANG_BUILD_TOOLS (#145005)
via flang-commits
flang-commits at lists.llvm.org
Thu Jul 3 07:45:50 PDT 2025
Author: parabola94
Date: 2025-07-03T16:45:47+02:00
New Revision: 2b49d36c081f4557cb17d176e17269c2c8843243
URL: https://github.com/llvm/llvm-project/commit/2b49d36c081f4557cb17d176e17269c2c8843243
DIFF: https://github.com/llvm/llvm-project/commit/2b49d36c081f4557cb17d176e17269c2c8843243.diff
LOG: [flang][cmake] Separate FLANG_INCLUDE_TOOLS from FLANG_BUILD_TOOLS (#145005)
If we disable `FLANG_BUILD_TOOLS`, not only building the tools but also
generating the targets for them is skipped now. On the other hand, llvm
separates them into `LLVM_BUILD_TOOLS` and `LLVM_INCLUDE_TOOLS`.
This patch introduces `FLANG_INCLUDE_TOOLS` for the distinction.
Added:
Modified:
flang/CMakeLists.txt
Removed:
################################################################################
diff --git a/flang/CMakeLists.txt b/flang/CMakeLists.txt
index 068d134671db8..0bfada476348a 100644
--- a/flang/CMakeLists.txt
+++ b/flang/CMakeLists.txt
@@ -504,9 +504,10 @@ add_subdirectory(include)
add_subdirectory(lib)
add_subdirectory(cmake/modules)
+option(FLANG_INCLUDE_TOOLS "Generate build targets for the Flang tools." ON)
option(FLANG_BUILD_TOOLS
"Build the Flang tools. If OFF, just generate build targets." ON)
-if (FLANG_BUILD_TOOLS)
+if (FLANG_INCLUDE_TOOLS)
add_subdirectory(tools)
endif()
More information about the flang-commits
mailing list