Skip to content

Commit 155eee3

Browse files
authored
Merge pull request #61582 from hyp/cxx-sum-work61472
[interop] CxxVectorSum benchmark: workaround https://github.com/apple…
2 parents dcc940b + e159b1d commit 155eee3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

benchmark/cxx-source/CxxVectorSum.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@
1414
// as compared to the C++ implementation of such sum.
1515

1616
import TestsUtils
17+
18+
public let benchmarks: [BenchmarkInfo] = []
19+
#if FIX_61472
20+
21+
import std
22+
23+
// FIXME: remove workaround for: https://github.com/apple/swift/issues/61472
24+
public func __workaround_std_import() {
25+
let s = std.string()
26+
blackHole(s.size())
27+
}
28+
1729
import CxxStdlibPerformance
1830
import Cxx
1931

@@ -127,3 +139,4 @@ extension VectorOfU32.const_iterator : Equatable, UnsafeCxxInputIterator { }
127139

128140
extension VectorOfU32: CxxSequence {}
129141
#endif
142+
#endif

0 commit comments

Comments
 (0)