Skip to content

Conversation

@DougGregor
Copy link
Member

Allow external declaration of global variables via @_extern(c). Such variables need to have types represented in C (of course), have only storage (no accessors), and cannot have initializers. At the SIL level, we use the SIL asmname attribute to get the appropriate C name.

While here, slightly shore up the @_extern(c) checking, which should fix issue #70776 / rdar://153515764.

Allow external declaration of global variables via `@_extern(c)`. Such
variables need to have types represented in C (of course), have only
storage (no accessors), and cannot have initializers. At the SIL
level, we use the SIL asmname attribute to get the appropriate C name.

While here, slightly shore up the `@_extern(c)` checking, which should
fix issue swiftlang#70776 / rdar://153515764.
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor
Copy link
Member Author

@swift-ci please test macOS

@DougGregor
Copy link
Member Author

Oops, failure was legit. Fix incoming.

@DougGregor
Copy link
Member Author

@swift-ci please test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant