File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
CoreFoundation/Base.subproj Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 61
61
#define __HAS_DISPATCH__ 1
62
62
#endif
63
63
#endif
64
+ #if DEPLOYMENT_TARGET_LINUX && DEPLOYMENT_RUNTIME_SWIFT && DEPLOYMENT_ENABLE_LIBDISPATCH
65
+ #define __HAS_DISPATCH__ 1
66
+ #endif
67
+
64
68
// Some compilers provide the capability to test if certain features are available. This macro provides a compatibility path for other compilers.
65
69
#ifndef __has_feature
66
70
#define __has_feature (x ) 0
Original file line number Diff line number Diff line change 60
60
'-L${XCTEST_BUILD_DIR}' ,
61
61
'-I/usr/include/libxml2'
62
62
]
63
+
64
+ if "LIBDISPATCH_SOURCE_DIR" in Configuration .current .variables :
65
+ foundation .CFLAGS += " " + " " .join ([
66
+ '-DDEPLOYMENT_ENABLE_LIBDISPATCH' ,
67
+ '-I' + Configuration .current .variables ["LIBDISPATCH_SOURCE_DIR" ],
68
+ '-I' + Configuration .current .variables ["LIBDISPATCH_BUILD_DIR" ]+ '/tests' # for include of dispatch/private.h in CF
69
+ ])
70
+
63
71
foundation .SWIFTCFLAGS = " " .join (swift_cflags )
64
72
65
73
foundation .LDFLAGS += '-lpthread -ldl -lm -lswiftCore -lxml2 '
You can’t perform that action at this time.
0 commit comments