We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ccbc75 commit cd2c471Copy full SHA for cd2c471
CMakeLists.txt
@@ -629,6 +629,8 @@ if("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC" OR "${CMAKE_CXX_SIMULATE_ID}" STREQU
629
set(SWIFT_COMPILER_IS_MSVC_LIKE TRUE)
630
endif()
631
632
+# Avoid CMake's default -O3 for Release builds.
633
+set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")
634
if(NOT SWIFT_COMPILER_IS_MSVC_LIKE)
635
_compute_lto_flag("${SWIFT_TOOLS_ENABLE_LTO}" _lto_flag_out)
636
if(_lto_flag_out)
0 commit comments