-
Notifications
You must be signed in to change notification settings - Fork 651
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
Enable MemberImportVisibility check - attempt 2 #3029
Conversation
010d5dc
to
0277250
Compare
Enable MemberImportVisibility check on all targets. Use a standard string header and footer to bracket the new block for ease of updating in the future with scripts.
0277250
to
1afd8b5
Compare
#if canImport(Darwin) | ||
private let S_IFREG = Darwin.S_IFREG | ||
#elseif canImport(Glibc) | ||
private let S_IFREG = Glibc.S_IFREG | ||
#endif | ||
|
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.
This block is probably worth calling out to reviewers
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.
Thanks, I built this patch natively on Android without a problem, so no changes needed there.
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.
Awesome, thanks
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.
I think we'll need the same for Musl as we check in a bunch of other places too.
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.
I think we'll need the same for Musl
Tough to say, as the static Musl SDK doesn't let you build the tests, swiftlang/swift-docker#396.
#if canImport(Darwin) | ||
private let S_IFREG = Darwin.S_IFREG | ||
#elseif canImport(Glibc) | ||
private let S_IFREG = Glibc.S_IFREG | ||
#endif | ||
|
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.
I think we'll need the same for Musl as we check in a bunch of other places too.
Enable MemberImportVisibility check on all targets. Use a standard string header and footer to bracket the new block for ease of updating in the future with scripts.
See #3021