-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[5.6] [stdlib] Some fixes for scalar names #40759
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
Conversation
@swift-ci please test |
Build failed |
@swift-ci please clean test macOS |
[stdlib] Some fixes for scalar names
@swift-ci please test |
@@ -159,6 +159,12 @@ func emitScalarNames( | |||
} | |||
} | |||
|
|||
result += """ | |||
#define NAMES_LAST_SCALAR_OFFSET \(nameBytes.count) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Normally in C I would define these in terms of the collection:
static const size_t _swift_stdlib_names_last_offset = sizeof _swift_stdlib_names / sizeof _swift_stdlib_names[0];
Given that they're programmatically generated, I'm ok with doing it they way you have it, so no need to fix this right now, but I generally prefer this style.
Build failed |
@swift-ci please clean test macOS |
This cherry picks the changes made to fix getting some scalar names.
(Note this is dependent on #40758 )
(Cherry pick of #40644 for 5.6)