Skip to content

Commit c72d939

Browse files
authored
Revert "[CMake] Explicitly disable LTO if no LTO option is provided (#85621)"
This reverts commit 51d2f2b.
1 parent d2681c5 commit c72d939

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ function(_compute_lto_flag option out_var)
5858
set(${out_var} "-flto=full" PARENT_SCOPE)
5959
elseif (lowercase_option STREQUAL "thin")
6060
set(${out_var} "-flto=thin" PARENT_SCOPE)
61-
else()
62-
set(${out_var} "-fno-lto" PARENT_SCOPE)
6361
endif()
6462
endfunction()
6563

0 commit comments

Comments
 (0)