Skip to content

Conversation

@brendandahl
Copy link
Collaborator

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.

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
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

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.

4 participants