mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
To build benchmarks that use C++ `std::span`, we need to use C++20 standard. SwiftPM supports `.interoperabilityMode(.Cxx)` build setting starting from version 5.9. In more recent versions, SwiftPM is also able to correctly propagate the C++ standard version (e.g. `-Xcc -std=c++20`) to the Swift compiler invocation, when C++ interop is enabled. The C++ standard version is only propagated if the modern build setting is used. This has caused Linux CI failures in the past. This change switches the package manifest to use the modern build setting to enable C++ interop.
6.2 KiB
6.2 KiB