Skip to content

Commit 2b49d36

Browse files
authored
[flang][cmake] Separate FLANG_INCLUDE_TOOLS from FLANG_BUILD_TOOLS (llvm#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.
1 parent a88e286 commit 2b49d36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flang/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,9 +504,10 @@ add_subdirectory(include)
504504
add_subdirectory(lib)
505505
add_subdirectory(cmake/modules)
506506

507+
option(FLANG_INCLUDE_TOOLS "Generate build targets for the Flang tools." ON)
507508
option(FLANG_BUILD_TOOLS
508509
"Build the Flang tools. If OFF, just generate build targets." ON)
509-
if (FLANG_BUILD_TOOLS)
510+
if (FLANG_INCLUDE_TOOLS)
510511
add_subdirectory(tools)
511512
endif()
512513

0 commit comments

Comments
 (0)