File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -629,14 +629,17 @@ if("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC" OR "${CMAKE_CXX_SIMULATE_ID}" STREQU
629
629
set (SWIFT_COMPILER_IS_MSVC_LIKE TRUE )
630
630
endif ()
631
631
632
- # Avoid CMake's default -O3 for Release builds.
633
- set (CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG" )
634
632
if (NOT SWIFT_COMPILER_IS_MSVC_LIKE )
633
+ # Avoid CMake's default -O3 for Release builds.
634
+ set (CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG" )
635
+
635
636
_compute_lto_flag ("${SWIFT_TOOLS_ENABLE_LTO} " _lto_flag_out )
636
637
if (_lto_flag_out )
637
638
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_RELEASE} -gline-tables-only" )
638
639
set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -gline-tables-only" )
639
640
endif ()
641
+ else ()
642
+
640
643
endif ()
641
644
642
645
#
You can’t perform that action at this time.
0 commit comments