Files
swift-mirror/lib/DriverTool/CMakeLists.txt
Allan Shortlidge 470baff865 Driver: Remove swift-api-extract.
Now that API descriptions are emitted during module build jobs when
`-emit-api-descriptor-path` is specified and the build system has been updated
to pass that flag when the output is needed, the `swift-api-extract` frontend
alias is no longer used. Delete it and the tests that were specific to invoking
`swift-api-extract`.

Resolves rdar://116537394.
2024-06-27 17:05:32 -07:00

55 lines
1.6 KiB
CMake

set(driver_sources_and_options
driver.cpp
sil_opt_main.cpp
sil_func_extractor_main.cpp
sil_nm_main.cpp
sil_llvm_gen_main.cpp
sil_passpipeline_dumper_main.cpp
swift_dependency_tool_main.cpp
swift_llvm_opt_main.cpp
autolink_extract_main.cpp
modulewrap_main.cpp
swift_api_digester_main.cpp
swift_cache_tool_main.cpp
swift_indent_main.cpp
swift_symbolgraph_extract_main.cpp
swift_parse_test_main.cpp)
set(driver_common_libs
swiftAPIDigester
swiftDriver
swiftFrontendTool
swiftSymbolGraphGen
LLVMBitstreamReader)
add_swift_host_library(swiftDriverTool STATIC
${driver_sources_and_options}
)
target_link_libraries(swiftDriverTool
PUBLIC
${driver_common_libs})
if (SWIFT_BUILD_SWIFT_SYNTAX)
target_link_libraries(swiftDriverTool
PRIVATE
swiftASTGen
)
add_dependencies(swiftDriverTool
swiftASTGen
)
endif()
# If building as part of clang, make sure the headers are installed.
if(NOT SWIFT_BUILT_STANDALONE)
add_dependencies(swiftDriverTool clang-resource-headers)
endif()
set_swift_llvm_is_available(swiftDriverTool)
set(LLVM_TARGET_DEFINITIONS SwiftCacheToolOptions.td)
swift_tablegen(SwiftCacheToolOptions.inc -gen-opt-parser-defs)
swift_add_public_tablegen_target(SwiftCacheToolOptions)
add_dependencies(swiftDriverTool SwiftCacheToolOptions)