Skip to content

Commit 4ea1132

Browse files
committed
[cxx-interop] pass -std=c++20 to configurations using std::span
1 parent 796ccb7 commit 4ea1132

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

benchmark/Package.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ targets.append(
130130
swiftSettings: [.unsafeFlags(["-Xfrontend",
131131
"-enable-experimental-cxx-interop",
132132
"-I",
133-
"utils/CxxTests"])]))
133+
"utils/CxxTests",
134+
"-Xcc",
135+
"-std=c++20"])]))
134136

135137
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
136138
targets.append(
@@ -170,6 +172,8 @@ targets += cxxSingleSourceLibraries.map { name in
170172
"-enable-experimental-cxx-interop",
171173
"-I",
172174
"utils/CxxTests",
175+
"-Xcc",
176+
"-std=c++20",
173177
// FIXME: https://github.com/apple/swift/issues/61453
174178
"-Xfrontend", "-validate-tbd-against-ir=none"])])
175179
}

0 commit comments

Comments
 (0)