Open vsarunas opened 2 weeks ago
A small update to help narrow it down:
The build works on macOS in release mode with the toolchain shipped with Xcode 16b6:
hassila@min ~/g/p/L/OrdoEssentials (main)> swift --version
swift-driver version: 1.115 Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
Target: arm64-apple-macosx14.0
It also works in debug mode on both Linux and macOS with the toolchain snapshot above (2024-08-21).
It always fails in release mode on both Linux and macOS with the toolchain snapshot above (2024-08-21).
Just reproduced with 08-22 toolchain too, just changing this setting in Xcode 16b6 makes the toolchain crash - the built in version is fine.
Working around with adding to swiftSettings unsafeFlags:
"-Xllvm", "-sil-disable-pass=NonTransparentFunctionOwnershipModelEliminator",
"-Xllvm", "-sil-disable-pass-only-function=$s14Essentials12encodeString_2in6lengthxxQp_tSS_xxQp_tSitRvzs17FixedWidthIntegerRzlFs6UInt32V_QP_Tg5"
Description
Swift 6 (swift-6.0-DEVELOPMENT-SNAPSHOT-2024-08-21) fails to build in release, debug and Swift 5.10 work fine.
With
-sil-verify-all
the function shown is:Reproduction
Stack dump
Expected behavior
Compile
Environment
Additional information
No response