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

[wasm] Fix ambiguous errno error when importing WASILibc module #75747

Merged

Conversation

kateinoigakukun
Copy link
Member

This commit fixes an ambiguous errno error when importing WASILibc module and SwiftWASILibc Clang module.

The error is caused by the fact that we define a shim for errno in Platform.swift file, but wasi-libc defines errno in a way ClangImporter can understand. We don't need to define shims for it, otherwise we get two candidates for errno identifier.

This commit fixes an ambiguous `errno` error when importing WASILibc
module and SwiftWASILibc Clang module.

The error is caused by the fact that we define a shim for `errno` in
`Platform.swift` file, but wasi-libc defines `errno` in a way
ClangImporter can understand. We don't need to define shims for it,
otherwise we get two candidates for `errno` identifier.
@kateinoigakukun
Copy link
Member Author

@swift-ci smoke test

@kateinoigakukun
Copy link
Member Author

@swift-ci test WebAssembly

@kateinoigakukun kateinoigakukun marked this pull request as ready for review August 7, 2024 08:36
@kateinoigakukun kateinoigakukun requested a review from a team as a code owner August 7, 2024 08:36
@kateinoigakukun kateinoigakukun merged commit 209b20f into swiftlang:main Aug 7, 2024
4 checks passed
@kateinoigakukun kateinoigakukun deleted the yt/fix-ambiguous-errno branch August 7, 2024 09:24
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.

2 participants