[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.
This commit is contained in:
parabola94 2025-07-03 23:45:47 +09:00 committed by GitHub
parent a88e286aef
commit 2b49d36c08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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