File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ include(EmitSwiftInterface)
83
83
include (PlatformInfo )
84
84
include (gyb )
85
85
include (ResourceEmbedding )
86
+ include (CatalystSupport )
86
87
87
88
check_symbol_exists ("asl_log" "asl.h" SwiftCore_HAS_ASL )
88
89
check_symbol_exists ("dladdr" "dlfcn.h" SwiftCore_HAS_DLADDR )
Original file line number Diff line number Diff line change
1
+ # Add flags for generating the zippered target variant in the build
2
+
3
+ if (SwiftCore_COMPILER_VARIANT_TARGET )
4
+ add_compile_options (
5
+ "$<$<COMPILE_LANGUAGE:C,CXX>:SHELL:-darwin-target-variant ${SwiftCore_COMPILER_VARIANT_TARGET} >"
6
+ "$<$<COMPILE_LANGUAGE:Swift>:SHELL:-target-variant ${SwiftCore_COMPILER_VARIANT_TARGET} >"
7
+
8
+ # TODO: Remove me once we have a driver with
9
+ # https://github.com/swiftlang/swift-driver/pull/1803
10
+ "$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xclang-linker -darwin-target-variant -Xclang-linker ${SwiftCore_COMPILER_VARIANT_TARGET} >" )
11
+
12
+ add_link_options (
13
+ "$<$<LINK_LANGUAGE:C,CXX>:SHELL:-darwin-target-variant ${SwiftCore_COMPILER_VARIANT_TARGET} >"
14
+ "$<$<LINK_LANGUAGE:Swift>:SHELL:-target-variant ${SwiftCore_COMPILER_VARIANT_TARGET} >"
15
+
16
+ # TODO: Remove me once we have a driver with
17
+ # https://github.com/swiftlang/swift-driver/pull/1803
18
+ "$<$<LINK_LANGUAGE:Swift>:SHELL:-Xclang-linker -darwin-target-variant -Xclang-linker ${SwiftCore_COMPILER_VARIANT_TARGET} >" )
19
+ endif ()
You can’t perform that action at this time.
0 commit comments