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

[jspi] Fix TSD generation when using asyncify library functions. #23419

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

brendandahl
Copy link
Collaborator

Instead of disabling JSPI during TSD generation just skip instrumenting the wasm exports and imports so JSPI isn't needed.

Fixes #23418

Instead of disabling JSPI during TSD generation just skip instrumenting
the wasm exports and imports so JSPI isn't needed.

Fixes emscripten-core#23418
@brendandahl brendandahl requested a review from sbc100 January 15, 2025 19:52
let HEAPU32: any;
let HEAP64: any;
let HEAPU64: any;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is a side effect of adding -sSTRICT? Is that related to this change somehow?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, strict will remove those definitions. The reporters issue only happened in strict mode, since it turns on erroring on undefined symbols.

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.

Build still fails when both -sJSPI and --emit-tsd are active
2 participants