-
Notifications
You must be signed in to change notification settings - Fork 10.5k
ClangImporter: support __isoc_va_list for WASI/musl #31692
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
base: main
Are you sure you want to change the base?
Conversation
This seems reasonable, but should have an accompanying test. |
0e432a3
to
d4754e2
Compare
@swift-ci please smoke test |
@swift-ci please test OS X platform |
@swift-ci please smoke test OS X platform |
Build failed |
@swift-ci please clean test |
Build failed |
Build failed |
d4754e2
to
e9f8eb0
Compare
@swift-ci please smoke test |
@swift-ci please test Windows platform |
@swift-ci Please smoke test |
I'd expect these to fail, for some reason the test always fails for me on x86, but passes on arm64, I still have no idea why |
@zoecarver since you're working on ClangImporter, maybe you've seen something like this before? |
I guess there is some difference on va_list ABI between arm64 and x64. Could you try to replace variables with functions like |
@swift-ci please smoke test |
Closed as outdated. |
@MaxDesiatov Would it be possible to rebase this on latest |
This PR is not ready and will fail on CI. |
__isoc_va_list
is used in musl and WASI libc, as the latter is based on musl. It would be great to support this variant in ClangImport to improve support for those environments.Related to SR-9307.