Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
flang/CMakeLists.txt
Show First 20 Lines • Show All 406 Lines • ▼ Show 20 Lines | |||||
add_subdirectory(include) | add_subdirectory(include) | ||||
add_subdirectory(lib) | add_subdirectory(lib) | ||||
add_subdirectory(cmake/modules) | add_subdirectory(cmake/modules) | ||||
option(FLANG_BUILD_TOOLS | option(FLANG_BUILD_TOOLS | ||||
"Build the Flang tools. If OFF, just generate build targets." ON) | "Build the Flang tools. If OFF, just generate build targets." ON) | ||||
if (FLANG_BUILD_TOOLS) | if (FLANG_BUILD_TOOLS) | ||||
add_subdirectory(tools) | add_subdirectory(tools) | ||||
add_subdirectory(module) | |||||
sscalpone: The modules are more like the runtime than the tools. Is there a reason to keep this as part… | |||||
endif() | endif() | ||||
add_subdirectory(runtime) | add_subdirectory(runtime) | ||||
option(FLANG_BUILD_EXAMPLES "Build Flang example programs by default." OFF) | option(FLANG_BUILD_EXAMPLES "Build Flang example programs by default." OFF) | ||||
if (FLANG_BUILD_EXAMPLES AND FLANG_STANDALONE_BUILD) | if (FLANG_BUILD_EXAMPLES AND FLANG_STANDALONE_BUILD) | ||||
message(FATAL_ERROR "Examples are not supported in out-of-tree builds.") | message(FATAL_ERROR "Examples are not supported in out-of-tree builds.") | ||||
endif() | endif() | ||||
add_subdirectory(examples) | add_subdirectory(examples) | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |
The modules are more like the runtime than the tools. Is there a reason to keep this as part of the tools conditional?