1
- // swift-tools-version:5.4
1
+ // swift-tools-version:5.9
2
2
//===--- Package.swift.in - SwiftCompiler SwiftPM package -----------------===//
3
3
//
4
4
// This source file is part of the Swift.org open source project
14
14
import PackageDescription
15
15
16
16
private extension Target {
17
- static let defaultSwiftSettings : [ SwiftSetting ] = [
18
- . unsafeFlags( [
19
- " -Xfrontend " , " -validate-tbd-against-ir=none " ,
20
- " -Xfrontend " , " -enable-experimental-cxx-interop " ,
21
- // Bridging modules and headers
22
- " -Xcc " , " -I " , " -Xcc " , " ../include " ,
23
- // LLVM modules and headers
24
- " -Xcc " , " -I " , " -Xcc " , " ../../llvm-project/llvm/include " ,
25
- // Clang modules and headers
26
- " -Xcc " , " -I " , " -Xcc " , " ../../llvm-project/clang/include " ,
27
- " -cross-module-optimization "
28
- ] ) ,
29
- ]
30
-
31
17
static func compilerModuleTarget(
32
18
name: String ,
33
19
dependencies: [ Dependency ] ,
@@ -40,7 +26,15 @@ private extension Target {
40
26
path: path ?? " Sources/ \( name) " ,
41
27
exclude: [ " CMakeLists.txt " ] ,
42
28
sources: sources,
43
- swiftSettings: defaultSwiftSettings + swiftSettings)
29
+ cxxSettings: [
30
+ . headerSearchPath( " ../include " ) ,
31
+ . headerSearchPath( " ../../llvm-project/llvm/include " ) ,
32
+ . headerSearchPath( " ../../llvm-project/clang/include " ) ,
33
+ ] ,
34
+ swiftSettings: [
35
+ . interoperabilityMode( . Cxx) ,
36
+ . unsafeFlags( [ " -cross-module-optimization " ] ) ,
37
+ ] + swiftSettings)
44
38
}
45
39
}
46
40
0 commit comments