apple/swift-embedded-examples

SourceKit error: Cannot use metatype of type 'RCC.AHB1ENR.ReadWrite' in embedded Swift

mkbrwr opened this issue · 3 comments

While the stm32-uart-echo builds successfully, there are errors from SourceKit. Here's one of them
Screenshot 2024-08-10 at 11 54 13

This is a false positive diagnostic coming from SourceKit, which is not present in regular builds, because regular builds have WMO (as required by Embedded Swift), but SourceKit sidesteps that and runs PerfDiags without WMO.

I think this should address it: swiftlang/swift#75308

Tried the latest downloadable toolchain and verified this is fixed now.