-
Notifications
You must be signed in to change notification settings - Fork 786
Fix binaryen.js to include allocate() explicitly #4793
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
Did you see a meaningful error to help you debug this? |
I saw an error at compile time due to closure, which is just https://github.com/WebAssembly/binaryen/runs/7261780292?check_suite_focus=true Without closure I guess it would compile ok and then error at runtime in a clear way? |
As a side note we should probably remove the use of allocate here in favor of just using We should also probably build with |
I can't find a way to make this actually work... due to escaping 😢
Any ideas? The only other thing I can think of is to use a response file... |
Does it help if you use |
You could also used |
I am worried about the general issue here though, since CMake is pretty popular. Requiring people to export |
I agree, I'll take a look at how to deal with $ in cmake options. This is not a new issue though, since requiring folks to include the The real fix here is have binaryen stop using |
Yeah, we should probably not use that API. We use it as kind of a shorthand for "allocate this array on the stack", but maybe there's a better way to do that. For strings at least I know we have helper functions for stack allocation - maybe they work on arrays too? |
I had a go a that patch: #4795 |
…)"" This reverts commit c00db9e.
binaryen.js uses
allocate
, which is no longer exported by default in emscripten.