mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[cxx-interop] Enable benchmarks in SwiftPM mode
The C++ interop benchmarks were only running when building with CMake, not with SwiftPM, because of a bug that was only triggering with SwiftPM. That bug seems to be fixed now.
This commit is contained in:
@@ -14,14 +14,6 @@
|
|||||||
// to a Swift collection.
|
// to a Swift collection.
|
||||||
|
|
||||||
import TestsUtils
|
import TestsUtils
|
||||||
|
|
||||||
#if SWIFT_PACKAGE
|
|
||||||
// FIXME: Needs fix for https://github.com/apple/swift/issues/61547.
|
|
||||||
|
|
||||||
public let benchmarks = [BenchmarkInfo]()
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
import CxxStdlibPerformance
|
import CxxStdlibPerformance
|
||||||
import Cxx
|
import Cxx
|
||||||
import CxxStdlib // FIXME(rdar://128520766): this import should be redundant
|
import CxxStdlib // FIXME(rdar://128520766): this import should be redundant
|
||||||
@@ -72,5 +64,3 @@ public func run_CxxSetOfU32_forEach(_ n: Int) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|||||||
@@ -14,14 +14,6 @@
|
|||||||
// as compared to the C++ implementation of such sum.
|
// as compared to the C++ implementation of such sum.
|
||||||
|
|
||||||
import TestsUtils
|
import TestsUtils
|
||||||
|
|
||||||
#if SWIFT_PACKAGE
|
|
||||||
// FIXME: Needs fix for https://github.com/apple/swift/issues/61547.
|
|
||||||
|
|
||||||
public let benchmarks = [BenchmarkInfo]()
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
import CxxStdlibPerformance
|
import CxxStdlibPerformance
|
||||||
import Cxx
|
import Cxx
|
||||||
import CxxStdlib // FIXME(rdar://128520766): this import should be redundant
|
import CxxStdlib // FIXME(rdar://128520766): this import should be redundant
|
||||||
@@ -127,4 +119,3 @@ public func run_CxxVectorOfU32_Sum_Swift_Reduce(_ n: Int) {
|
|||||||
}
|
}
|
||||||
blackHole(sum)
|
blackHole(sum)
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|||||||
Reference in New Issue
Block a user