-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[embind] Remove relaxed SIMD during TS generation #26255
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
Older versions of Node.js do not support relaxed SIMD instructions, which causes errors when running the Wasm module to generate TypeScript definitions. We now strip relaxed SIMD features from the temporary Wasm module before it is executed in Node.js. This ensures that TS generation remains functional even when the project uses relaxed SIMD.
| if settings.MEMORY64: | ||
| settings.MEMORY64 = 2 | ||
| # Source maps haven't been generated yet and aren't needed to run embind_gen. | ||
| settings.LOAD_SOURCE_MAP = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
possibly unrelated, but I was also getting error messages about source maps in here which I was able to resolve with settings.GENERATE_SOURCE_MAP = 0 here. Does it make sense to add this? If yes, in this PR or in a separate one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Separate PR would be good.
Older versions of Node.js do not support relaxed SIMD instructions, which causes errors when running the Wasm module to generate TypeScript definitions.
We now strip relaxed SIMD features from the temporary Wasm module before it is executed in Node.js. This ensures that TS generation remains functional even when the project uses relaxed SIMD.