Commit Graph

6 Commits

Author SHA1 Message Date
John Hui
ff596d5932 Revert "[cxx-interop] Temporarily exclude CxxSetToCollection benchmark from the build (#81145)"
This reverts commit 86c30d6b58.
2025-04-30 18:36:57 -07:00
Egor Zhdan
86c30d6b58 [cxx-interop] Temporarily exclude CxxSetToCollection benchmark from the build (#81145)
This is needed to unblock nightly toolchains, which are currently failing to build with an assertion:
```
swift-frontend: /home/build-user/build/buildbot_linux/llvm-linux-x86_64/tools/clang/include/clang/AST/TypeNodes.inc:79: TypeInfo clang::ASTContext::getTypeInfoImpl(const Type *) const: Assertion `!T->isDependentType() && "should not see dependent types here"' failed.
```

rdar://150067288
2025-04-29 09:57:39 -07:00
Egor Zhdan
7bdd9dd84a [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.
2024-07-24 13:38:38 +01:00
Egor Zhdan
0bfd5722d4 [cxx-interop] Re-enable benchmarks
This adds an `import CxxStdlib` statement which fixes compilation. It should be redundant, but it works around a bug that got exposed by an change in explicit modules (rdar://128520766).

This will bring back the performance numbers while the underlying issue is being investigated.
2024-07-19 17:15:46 +01:00
Egor Zhdan
d5f5d4bd55 [cxx-interop] Make CxxConvertibleToCollection.forEach public
This allows clients to iterate over a C++ container which doesn't provide random access with a `.forEach` call.

rdar://107995558
2023-04-18 14:43:43 +01:00
Egor Zhdan
0da22a3420 [cxx-interop] Add benchmark for std::set conversion to a Swift collection 2023-01-16 16:18:07 +00:00