mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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
13 lines
344 B
CMake
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)
|