Skip to content

[wasm][test] Remove unused argc/argv parameters from @main decl #69347

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

kateinoigakukun
Copy link
Member

@kateinoigakukun kateinoigakukun commented Oct 24, 2023

In WebAssembly, main function is mangled differently depending on if it takes argc/argv or not. If it doesn't take them, it's mangled to main as well as other platforms, so remove unused argc/argv in executable tests to avoid linkage failure.

This is a preparation to enable executable tests against WebAssembly.
Resolves part of rdar://116488131

In WebAssembly, `main` function is mangled differently depending on if
it takes argc/argv or not. If it doesn't take them, it's mangled to
`main` as well as other platforms, so remove unused argc/argv in
executable tests to avoid linkage failure.
@kateinoigakukun
Copy link
Member Author

@swift-ci Please smoke test

@kateinoigakukun kateinoigakukun added test suite Area: test suite WebAssembly Platform: WebAssembly labels Oct 24, 2023
@kateinoigakukun kateinoigakukun marked this pull request as ready for review October 24, 2023 02:52
@kateinoigakukun kateinoigakukun merged commit 93a09d6 into swiftlang:main Oct 24, 2023
@kateinoigakukun kateinoigakukun deleted the pr-1b946c6c06d5895a3717889966e40733ad6350e9 branch October 24, 2023 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test suite Area: test suite WebAssembly Platform: WebAssembly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant