Skip to content

Commit 029ec7a

Browse files
committed
[interop] cxx vector benchmark - reenable it only outside SwiftPM to workaround module serialization issue
1 parent a2ec07c commit 029ec7a

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

benchmark/cxx-source/CxxVectorSum.swift

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,16 @@
1515

1616
import TestsUtils
1717

18-
public let benchmarks: [BenchmarkInfo] = []
19-
#if FIX_61472
18+
#if SWIFT_PACKAGE
19+
// FIXME: Needs fix for https://github.com/apple/swift/issues/61547.
2020

21-
import std
21+
public let benchmarks = [BenchmarkInfo]()
2222

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-
}
23+
#else
2824

2925
import CxxStdlibPerformance
3026
import Cxx
3127

32-
// FIXME: Linux needs fix for https://github.com/apple/swift/issues/61547.
33-
#if os(Linux)
34-
public let benchmarks: [BenchmarkInfo] = []
35-
#else
3628
public let benchmarks = [
3729
BenchmarkInfo(
3830
name: "CxxVecU32.sum.Cxx.rangedForLoop",
@@ -139,4 +131,3 @@ extension VectorOfU32.const_iterator : Equatable, UnsafeCxxInputIterator { }
139131

140132
extension VectorOfU32: CxxSequence {}
141133
#endif
142-
#endif

0 commit comments

Comments
 (0)