File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -75,10 +75,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL Windows)
75
75
endif ()
76
76
add_dependencies (uuid CoreFoundation )
77
77
78
- set (swift_optimization_flags )
79
- if (NOT CMAKE_BUILD_TYPE MATCHES Debug )
80
- set (swift_optimization_flags -O )
81
- endif ()
82
78
if (CMAKE_SYSTEM_NAME STREQUAL Windows )
83
79
set (swift_libc_flags -libc;${CMAKE_MSVC_RUNTIME_LIBRARY} )
84
80
if (CMAKE_SYSTEM_NAME STREQUAL Debug )
@@ -294,7 +290,7 @@ add_swift_library(Foundation
294
290
-I;${ICU_INCLUDE_DIR}
295
291
${libdispatch_cflags}
296
292
$< $< BOOL:ENABLE_TESTING> :-enable-testing>
297
- ${swift_optimization_flags}
293
+ $< $< NOT: $< CONFIG:Debug > > :-O >
298
294
${swift_libc_flags}
299
295
DEPENDS
300
296
uuid
@@ -399,7 +395,7 @@ add_swift_executable(plutil
399
395
-I;${ICU_INCLUDE_DIR}
400
396
${libdispatch_cflags}
401
397
$< $< BOOL:ENABLE_TESTING> :-enable-testing>
402
- ${swift_optimization_flags}
398
+ $< $< NOT: $< CONFIG:Debug > > :-O >
403
399
${swift_libc_flags}
404
400
DEPENDS
405
401
uuid
@@ -568,7 +564,7 @@ if(ENABLE_TESTING)
568
564
-I;${FOUNDATION_PATH_TO_XCTEST_BUILD}/swift
569
565
-I;${ICU_INCLUDE_DIR}
570
566
${libdispatch_cflags}
571
- ${swift_optimization_flags}
567
+ $< $< NOT: $< CONFIG:Debug > > :-O >
572
568
${swift_libc_flags}
573
569
DEPENDS
574
570
Foundation
You can’t perform that action at this time.
0 commit comments