[flang-commits] [flang] [flang][cmake] Separate FLANG_INCLUDE_TOOLS from FLANG_BUILD_TOOLS (PR #145005)

via flang-commits flang-commits at lists.llvm.org
Fri Jun 27 05:55:17 PDT 2025


https://github.com/parabola94 updated https://github.com/llvm/llvm-project/pull/145005

>From 9d8d7017ffb857f1a63eac023a2aa7f2276b5f81 Mon Sep 17 00:00:00 2001
From: Heavybaby5000 <Heavybaby5000 at toki.waseda.jp>
Date: Fri, 20 Jun 2025 18:20:53 +0900
Subject: [PATCH] [flang][cmake] Separate FLANG_INCLUDE_TOOLS from
 FLANG_BUILD_TOOLS

---
 flang/CMakeLists.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/flang/CMakeLists.txt b/flang/CMakeLists.txt
index 56a96f590f0a3..b3f2caff37934 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