File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ function(add_unit_test name)
74
74
${CMAKE_CURRENT_BINARY_DIR}
75
75
${CMAKE_CURRENT_SOURCE_DIR}
76
76
${CMAKE_SOURCE_DIR} )
77
+ if (CMAKE_SWIFT_COMPILER )
78
+ target_compile_options (${name} PRIVATE -DLENIENT_DEADLINES=1 )
79
+ endif ()
77
80
if (WITH_BLOCKS_RUNTIME )
78
81
target_include_directories (${name}
79
82
SYSTEM BEFORE PRIVATE
@@ -154,3 +157,9 @@ endforeach()
154
157
target_link_libraries (dispatch_group PRIVATE m )
155
158
target_link_libraries (dispatch_timer_short PRIVATE m )
156
159
160
+ # test-specific compiler flags
161
+ target_compile_options (dispatch_c99 PRIVATE -std=c99 )
162
+
163
+ # test-specific compiler flags (for currently disabled tests)
164
+ #add_unit_test(dispatch_priority2 SOURCES dispatch_priority.c)
165
+ #target_compile_options(dispatch_priority2, PRIVATE -DUSE_SET_TARGET_QUEUE=1)
You can’t perform that action at this time.
0 commit comments