Files
swift-mirror/tools/swift-ast-script/CMakeLists.txt
Eric Miotto f417630054 Add option to reduce build times when using ThinLTO and ld64 (#41058)
Internal configurations targeting Darwin employ ThinLTO to
improve compiler performance, however using it on all executable
causes build time to increase with no matching benefit.

To reduce build times in such configurations, we allow some
ancillary targets to opt out of LLVM IR optimizations when linking
ThinLTO with ld64 (e.g. tools used for bootstrapping or debugging the
Swift compiler) -- this behaviour is opt in through a new flag
`--swift-tools-ld64-lto-codegen-only-for-supporting-targets`.

Addresses rdar://76702687
2022-02-09 08:22:02 -08:00

13 lines
344 B
CMake

add_swift_host_tool(swift-ast-script
ASTScriptConfiguration.cpp
ASTScriptParser.cpp
ASTScriptEvaluator.cpp
swift-ast-script.cpp
SWIFT_COMPONENT tools
THINLTO_LD64_ADD_FLTO_CODEGEN_ONLY
)
target_link_libraries(swift-ast-script
PRIVATE
swiftAST
swiftFrontendTool)