Skip to content

Commit fb8b189

Browse files
committed
[foundation] RelWithDebInfo should build the same as Release.
Enable optimizations also for RelWithDebInfo builds.
1 parent 27207fe commit fb8b189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ endif()
5959
add_dependencies(uuid CoreFoundation)
6060

6161
set(swift_optimization_flags)
62-
if(CMAKE_BUILD_TYPE MATCHES Release)
62+
if(CMAKE_BUILD_TYPE MATCHES Release OR CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)
6363
set(swift_optimization_flags -O)
6464
endif()
6565
if(ENABLE_TESTING)

0 commit comments

Comments
 (0)