@@ -7,7 +7,6 @@ let coreFoundationBuildSettings: [CSetting] = [
7
7
. headerSearchPath( " internalInclude " ) ,
8
8
. define( " DEBUG " , . when( configuration: . debug) ) ,
9
9
. define( " CF_BUILDING_CF " ) ,
10
- . define( " DEPLOYMENT_RUNTIME_SWIFT " , . when( platforms: [ . linux] ) ) ,
11
10
. define( " DEPLOYMENT_ENABLE_LIBDISPATCH " ) ,
12
11
. define( " HAVE_STRUCT_TIMESPEC " ) ,
13
12
. define( " SWIFT_CORELIBS_FOUNDATION_HAS_THREADS " ) ,
@@ -35,32 +34,23 @@ let coreFoundationBuildSettings: [CSetting] = [
35
34
. unsafeFlags( [ " -I/usr/lib/swift " ] , . when( platforms: [ . linux, . android] ) ) // dispatch
36
35
]
37
36
38
- #if os(macOS)
39
37
let coreFoundationLinkerSettings : [ LinkerSetting ] = [
40
- . unsafeFlags( [
41
- " -Xlinker " ,
42
- " -alias_list " ,
43
- " -Xlinker " ,
44
- " \( Context . packageDirectory) /Sources/CoreFoundation/DarwinSymbolAliases " ,
45
- ] )
38
+ . unsafeFlags( [ " -Xlinker " , " -alias_list " , " -Xlinker " , " \( Context . packageDirectory) /Sources/CoreFoundation/DarwinSymbolAliases " , ] , . when( platforms: [ . macOS] ) )
46
39
]
47
- #else
48
- let coreFoundationLinkerSettings : [ LinkerSetting ] = [ ]
49
- #endif
50
40
51
41
// For _CFURLSessionInterface, _CFXMLInterface
52
42
let interfaceBuildSettings : [ CSetting ] = [
53
43
. headerSearchPath( " ../CoreFoundation/internalInclude " ) ,
54
44
. headerSearchPath( " ../CoreFoundation/include " ) ,
55
45
. define( " DEBUG " , . when( configuration: . debug) ) ,
56
46
. define( " CF_BUILDING_CF " ) ,
57
- . define( " DEPLOYMENT_RUNTIME_SWIFT " ) ,
58
47
. define( " DEPLOYMENT_ENABLE_LIBDISPATCH " ) ,
59
48
. define( " HAVE_STRUCT_TIMESPEC " ) ,
60
49
. define( " SWIFT_CORELIBS_FOUNDATION_HAS_THREADS " ) ,
61
50
. define( " _GNU_SOURCE " , . when( platforms: [ . linux, . android] ) ) ,
62
51
. define( " TARGET_OS_WASI " , to: " 0 " , . when( platforms: [ . macOS] ) ) ,
63
52
. define( " TARGET_OS_BSD " , to: " 0 " , . when( platforms: [ . macOS] ) ) ,
53
+ . define( " TARGET_OS_ANDROID " , to: " 0 " , . when( platforms: [ . macOS] ) ) ,
64
54
. define( " INCLUDE_OBJC " , to: " 1 " , . when( platforms: [ . macOS] ) ) ,
65
55
. unsafeFlags( [
66
56
" -Wno-shorten-64-to-32 " ,
@@ -81,7 +71,7 @@ let interfaceBuildSettings: [CSetting] = [
81
71
]
82
72
83
73
let swiftBuildSettings : [ SwiftSetting ] = [
84
- . define( " DEPLOYMENT_RUNTIME_SWIFT " ) ,
74
+ . define( " DEPLOYMENT_RUNTIME_SWIFT " ) ,
85
75
. define( " SWIFT_CORELIBS_FOUNDATION_HAS_THREADS " ) ,
86
76
]
87
77
0 commit comments