-
Notifications
You must be signed in to change notification settings - Fork 702
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
Fix emscripten build warning and add missing export #2367
Conversation
f6a8bd9
to
c339469
Compare
7869694
to
abe3632
Compare
@sbc100 Sorry for creating another PR in such short time regarding wabtjs.
I ported the testcases for Assemblyscript/wabt.js to here, then some errors in wabt.post.js should can be found by CI. |
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.
Thanks for looking into this.
I'm not sure about adding this new test suite, especially since its comes from another project. Perhaps you could move that part into a separate PR?
abe3632
to
d59d079
Compare
e3932aa
to
cedb395
Compare
@sbc100 |
There was a missing cast here that only showed up in i686-debug. See #2367.
There was a missing cast here that only showed up in i686-debug. See #2367.
@sbc100 Can this PR be merged? Anything else to fix? |
docker exec emscripten emcmake cmake . | ||
docker exec emscripten make -j 2 VERBOSE=1 | ||
docker exec emscripten emcmake cmake -B emscripten -DWERROR=ON -DBUILD_TESTS=OFF | ||
docker exec -w /src/emscripten emscripten make -j $(nproc) |
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.
Why drop the VERBOSE=1
here?
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.
Just VERBOSE level trace is not quite necessary in most cases, because build warning and error show by default. VERBOSE level trace some time makes warning and error message not quite visible inside a large mount of text.
But it's not a big issue, I can also add it back. What do you think?
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.
In think as long as we have -DWERROR=ON
when its probably find to keep verbose build output when building during CI
@@ -168,6 +169,7 @@ static int os_mprotect(void* addr, size_t size) { | |||
static void os_print_last_error(const char* msg) { | |||
perror(msg); | |||
} | |||
#endif |
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.
@keithw @shravanrn WDYT about this change?
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.
Sure, this should be fine assuming the existing tests pass.
writeAsciiToMemory
built by new version emcc2.1: Add warning as error in emcc build
2.2 Port the test cases from https://github.com/AssemblyScript/wabt.js/tree/main/tests