Skip to content

Commit 95d0fd6

Browse files
authored
Merge pull request #85794 from swiftlang/revert-85621-explicit-no-lto
Revert "[CMake] Explicitly disable LTO if no LTO option is provided"
2 parents a437c6d + c72d939 commit 95d0fd6

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)