Skip to content

Commit 3ea5e8b

Browse files
authored
Merge pull request swiftlang#76522 from swiftlang/egorzhdan/benchmarks-modern-flag
[cxx-interop] Build benchmarks with modern C++ interop flag
2 parents 4bb9a58 + 9f44e0d commit 3ea5e8b

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

benchmark/Package.swift

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.4
1+
// swift-tools-version:5.9
22

33
import PackageDescription
44
import Foundation
@@ -127,11 +127,9 @@ targets.append(
127127
dependencies: swiftBenchDeps,
128128
path: "utils",
129129
sources: ["main.swift"],
130-
swiftSettings: [.unsafeFlags(["-cxx-interoperability-mode=default",
131-
"-I",
132-
"utils/CxxTests",
133-
// FIXME(rdar://136138941): these flags should be redundant because of cxxLanguageStandard
134-
"-Xcc", "-std=c++20"])]))
130+
swiftSettings: [.interoperabilityMode(.Cxx),
131+
.unsafeFlags(["-I",
132+
"utils/CxxTests"])]))
135133

136134
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
137135
targets.append(
@@ -167,11 +165,9 @@ targets += cxxSingleSourceLibraries.map { name in
167165
dependencies: singleSourceDeps,
168166
path: "cxx-source",
169167
sources: ["\(name).swift"],
170-
swiftSettings: [.unsafeFlags(["-cxx-interoperability-mode=default",
171-
"-I",
168+
swiftSettings: [.interoperabilityMode(.Cxx),
169+
.unsafeFlags(["-I",
172170
"utils/CxxTests",
173-
// FIXME(rdar://136138941): these flags should be redundant because of cxxLanguageStandard
174-
"-Xcc", "-std=c++20",
175171
// FIXME: https://github.com/apple/swift/issues/61453
176172
"-Xfrontend", "-validate-tbd-against-ir=none"])])
177173
}

0 commit comments

Comments
 (0)