Skip to content

Commit 6cc0630

Browse files
authored
Merge pull request swiftlang#75437 from swiftlang/egorzhdan/cxx-benchmarks-swiftpm
[cxx-interop] Enable benchmarks in SwiftPM mode
2 parents 7dd8914 + 7bdd9dd commit 6cc0630

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

benchmark/cxx-source/CxxSetToCollection.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@
1414
// to a Swift collection.
1515

1616
import TestsUtils
17-
18-
#if SWIFT_PACKAGE
19-
// FIXME: Needs fix for https://github.com/apple/swift/issues/61547.
20-
21-
public let benchmarks = [BenchmarkInfo]()
22-
23-
#else
24-
2517
import CxxStdlibPerformance
2618
import Cxx
2719
import CxxStdlib // FIXME(rdar://128520766): this import should be redundant
@@ -72,5 +64,3 @@ public func run_CxxSetOfU32_forEach(_ n: Int) {
7264
}
7365
}
7466
}
75-
76-
#endif

benchmark/cxx-source/CxxVectorSum.swift

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

1616
import TestsUtils
17-
18-
#if SWIFT_PACKAGE
19-
// FIXME: Needs fix for https://github.com/apple/swift/issues/61547.
20-
21-
public let benchmarks = [BenchmarkInfo]()
22-
23-
#else
24-
2517
import CxxStdlibPerformance
2618
import Cxx
2719
import CxxStdlib // FIXME(rdar://128520766): this import should be redundant
@@ -127,4 +119,3 @@ public func run_CxxVectorOfU32_Sum_Swift_Reduce(_ n: Int) {
127119
}
128120
blackHole(sum)
129121
}
130-
#endif

0 commit comments

Comments
 (0)