@@ -18,7 +18,7 @@ if(SWIFT_BUILD_REGEX_PARSER_IN_COMPILER)
18
18
list (APPEND ASTGen_Swift_dependencies _CompilerRegexParser )
19
19
endif ()
20
20
21
- add_pure_swift_host_library (swiftASTGen STATIC
21
+ add_pure_swift_host_library (swiftASTGen STATIC CXX_INTEROP
22
22
Sources /ASTGen/ASTGen.swift
23
23
Sources /ASTGen/ASTGen+CompilerBuildConfiguration.swift
24
24
Sources /ASTGen/Bridge.swift
@@ -52,7 +52,7 @@ add_pure_swift_host_library(swiftASTGen STATIC
52
52
${ASTGen_Swift_dependencies}
53
53
)
54
54
55
- add_pure_swift_host_library (swiftMacros STATIC
55
+ add_pure_swift_host_library (swiftMacros STATIC CXX_INTEROP
56
56
Sources /Macros/Macros.swift
57
57
Sources /Macros/PluginHost.swift
58
58
Sources /Macros/SourceManager.swift
@@ -69,44 +69,14 @@ add_pure_swift_host_library(swiftMacros STATIC
69
69
swiftASTGen
70
70
)
71
71
72
- add_pure_swift_host_library (swiftIDEUtilsBridging
72
+ add_pure_swift_host_library (swiftIDEUtilsBridging CXX_INTEROP
73
73
Sources /SwiftIDEUtilsBridging/NameMatcherBridging.swift
74
74
75
75
DEPENDENCIES
76
76
swiftAST
77
77
SWIFT_DEPENDENCIES
78
78
_CompilerSwiftIDEUtils
79
79
_CompilerSwiftSyntax
80
+ _CompilerSwiftIDEUtils
80
81
swiftASTGen
81
82
)
82
-
83
- set (compile_options
84
- "SHELL: -Xcc -std=c++17 -Xcc -DCOMPILED_WITH_SWIFT"
85
-
86
- # FIXME: Needed to work around an availability issue with CxxStdlib
87
- "SHELL: -Xfrontend -disable-target-os-checking"
88
-
89
- # Necessary to avoid treating IBOutlet and IBAction as keywords
90
- "SHELL:-Xcc -UIBOutlet -Xcc -UIBAction -Xcc -UIBInspectable"
91
- )
92
-
93
- if (CMAKE_SYSTEM_NAME STREQUAL "Windows" )
94
- list (APPEND compile_options
95
- # Make 'offsetof()' a const value.
96
- "SHELL:-Xcc -D_CRT_USE_BUILTIN_OFFSETOF"
97
- # Workaround for https://github.com/swiftlang/llvm-project/issues/7172
98
- "SHELL:-Xcc -Xclang -Xcc -fmodule-format=raw" )
99
- endif ()
100
-
101
- # Prior to 5.9, we have to use the experimental flag for C++ interop.
102
- if (CMAKE_Swift_COMPILER_VERSION VERSION_LESS 5.9 )
103
- list (APPEND compile_options "SHELL:-Xfrontend -enable-experimental-cxx-interop" )
104
- else ()
105
- list (APPEND compile_options "-cxx-interoperability-mode=default" )
106
- endif ()
107
-
108
- if (SWIFT_BUILD_SWIFT_SYNTAX )
109
- foreach (target swiftASTGen swiftIDEUtilsBridging swiftMacros )
110
- target_compile_options (${target} PRIVATE ${compile_options} )
111
- endforeach ()
112
- endif ()
0 commit comments