Skip to content

Fix argv passing in PROXY_TO_PTHREAD mode #17340

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

Merged
merged 1 commit into from
Jun 30, 2022
Merged

Fix argv passing in PROXY_TO_PTHREAD mode #17340

merged 1 commit into from
Jun 30, 2022

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jun 29, 2022

This was broken in #17153 but we didn't have any tests. The fix is
to export main even though we don't technically need to. We could
add a little complexity to allow metadce to remove it, but I'm not
sure its worth it.

Fixes: #17338

@sbc100 sbc100 requested a review from kripken June 29, 2022 08:31
@sbc100 sbc100 force-pushed the fix_thread_argv branch from b68d594 to a265b14 Compare June 29, 2022 09:18
This was broken in #17153 but we didn't have any tests.  The fix is
to export `main` even though we don't technically need to.  We could
add a little complexity to allow metadce to remove it, but I'm not
sure its worth it.

Fixes: #17338
@sbc100 sbc100 force-pushed the fix_thread_argv branch from a265b14 to 4058071 Compare June 29, 2022 23:36
@sbc100 sbc100 enabled auto-merge (squash) June 29, 2022 23:46
@sbc100 sbc100 disabled auto-merge June 30, 2022 10:42
@sbc100
Copy link
Collaborator Author

sbc100 commented Jun 30, 2022

cocos2d failure is unrelated. See #17347

@sbc100 sbc100 merged commit 5826562 into main Jun 30, 2022
@sbc100 sbc100 deleted the fix_thread_argv branch June 30, 2022 10:43
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.

EMSDK 3.1.14: no main argv with PROXY_TO_PTHREAD
2 participants