Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mkbrwr opened this issue Aug 10, 2024 · 2 comments · May be fixed by swiftlang/swift#75308
Assignees

Comments

@mkbrwr
Copy link

mkbrwr commented Aug 10, 2024

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

@kubamracek
Copy link
Collaborator

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.

@kubamracek
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants