Skip to content

Commit 61df461

Browse files
committed
[lto][cmake] Add LTO support to SourceKit.
rdar://24717107
1 parent db2126c commit 61df461

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/SourceKit/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,14 @@ function(add_sourcekit_default_compiler_flags target)
7575
BUILD_TYPE "${build_type}"
7676
ENABLE_ASSERTIONS "${enable_assertions}"
7777
ANALYZE_CODE_COVERAGE "${analyze_code_coverage}"
78+
ENABLE_LTO "${SWIFT_TOOLS_ENABLE_LTO}"
7879
RESULT_VAR_NAME c_compile_flags)
7980
_add_variant_link_flags(
8081
SDK "${sdk}"
8182
ARCH "${arch}"
8283
BUILD_TYPE "${build_type}"
8384
ENABLE_ASSERTIONS "${enable_assertions}"
85+
ENABLE_LTO "${SWIFT_TOOLS_ENABLE_LTO}"
8486
ANALYZE_CODE_COVERAGE "${analyze_code_coverage}"
8587
RESULT_VAR_NAME link_flags)
8688

0 commit comments

Comments
 (0)