Skip to content

Commit f7abe5a

Browse files
committed
build: correct flags for FoundationNetworking
Previous inlining had diverged the flags handling and we were no longer enabling optimizations or testability on FoundationNetworking. Correct the flag evaluation.
1 parent 189a90d commit f7abe5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ add_swift_library(FoundationNetworking
358358
${deployment_enable_libdispatch}
359359
-I;${CMAKE_CURRENT_BINARY_DIR}/swift
360360
${libdispatch_cflags}
361-
${swift_enable_testing}
362-
${swift_optimization_flags}
361+
$<$<BOOL:ENABLE_TESTING>:-enable-testing>
362+
$<$<NOT:$<CONFIG:Debug>>:-O>
363363
DEPENDS
364364
uuid
365365
CoreFoundation

0 commit comments

Comments
 (0)