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.
2 parents ac5f4c4 + 43415c7 commit 57139c6Copy full SHA for 57139c6
src/CMakeLists.txt
@@ -79,7 +79,7 @@ if(HAVE_OBJC)
79
endif()
80
if(ENABLE_SWIFT)
81
set(swift_optimization_flags)
82
- if(CMAKE_BUILD_TYPE MATCHES Release)
+ if(NOT CMAKE_BUILD_TYPE MATCHES Debug)
83
set(swift_optimization_flags -O)
84
85
add_swift_library(swiftDispatch
@@ -116,6 +116,11 @@ if(ENABLE_SWIFT)
116
PRIVATE
117
swift/DispatchStubs.cc
118
${CMAKE_CURRENT_BINARY_DIR}/swiftDispatch.o)
119
+ if(CMAKE_BUILD_TYPE MATCHES Debug)
120
+ target_link_libraries(dispatch
121
+ PRIVATE
122
+ swiftSwiftOnoneSupport)
123
+ endif()
124
125
if(ENABLE_DTRACE)
126
dtrace_usdt_probe(${CMAKE_CURRENT_SOURCE_DIR}/provider.d
0 commit comments