-
Notifications
You must be signed in to change notification settings - Fork 786
Fix build on Emscripten tip of tree #5019
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
CMakeLists.txt
Outdated
@@ -447,6 +448,7 @@ if(EMSCRIPTEN) | |||
else() | |||
target_link_libraries(binaryen_js "-sEXPORT_ES6=1") | |||
endif() | |||
target_link_libraries(binaryen_js "-sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE=[$allocateUTF8OnStack]") |
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.
you don't need the square brackets here or above.
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.
I tried without the square brackets, and it hits an escaping issue with the $
.
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.
Oh, actually my local testing must have been wrong... it's still failing on CI due to escaping 😢
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.
I'm trying $$
now for the escaping. I have to try on CI as for some reason my local CMake behaves differently.
Is there a simpler way to fix the escaping that I'm missing perhaps?
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.
Looks like I've hit this problem before #4793 (comment)
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.
You can also use -sEXPORTED_RUNTIME_METHODS=allocateUTF8OnStack
which doesn't use $-prefixing.
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.
Oh I see that you did that :)
No description provided.