Closed
Bug 1713081
Opened 4 years ago
Closed 4 years ago
wasi support part 16: fix build system to be able to use clang-12 provided by mozilla
Categories
(Core :: JavaScript Engine, enhancement, P2)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
91 Branch
People
(Reporter: dbezhetskov, Assigned: dbezhetskov)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 1 obsolete file)
No description provided.
Assignee | ||
Comment 1•4 years ago
|
||
- Remove the rpath-link linker flag because wasm-ld doesn't support it.
- Add <unistd.h> because
implicit declaration of function
{lseek, read, write} is invalid in C99`. - Ifdef tzset because wasi doesn't support it.
- Enable single thread model for cxx compiler to prevent defining STD_THREADS in advance and allow wasi to define LIBCPP_HAS_NO_THREADS because wasi doesn't support threads yet.
- Adjust some new tests because WASI doesn't support Intl, SharedArrayBuffer and to many recursion calls.
Updated•4 years ago
|
Assignee: nobody → dbezhetskov
Assignee | ||
Comment 2•4 years ago
|
||
WASI doesn't support tzset() so it's ifdefed.
WASI doesn't support Intl so intl-fallback-original.js is disabled.
WASI doesn't support SharedArrayBuffer so error-messages.js is disabled.
WASI doesn't support too much recursion so bug1710089.js is disabled.
Updated•4 years ago
|
Attachment #9223737 -
Attachment is obsolete: true
Assignee | ||
Comment 3•4 years ago
|
||
To compile SM to .wasm we need to use clang from wasi-sdk, this patch
allows us to use default clang-12 from mozilla's repo.
We remove usage of rpath-link flag because wasm-ld doesn't support it,
enable single thread model because wasi is single threaded
and finally add <unistd.h> becase it is forbidden to use read/write/lseek
without this header.
Pushed by dbezhetskov@igalia.com:
https://hg.mozilla.org/integration/autoland/rev/1d83cd7ab5ca
Fix tests for wasi. r=jandem
Comment 5•4 years ago
|
||
bugherder |
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
status-firefox91:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
Assignee | ||
Updated•4 years ago
|
Status: RESOLVED → UNCONFIRMED
Resolution: FIXED → ---
Assignee | ||
Updated•4 years ago
|
Keywords: leave-open
Pushed by dbezhetskov@igalia.com:
https://hg.mozilla.org/integration/autoland/rev/fa1a8a489ee2
Fix to use the default clang from upstream for SM WASI. r=glandium
Comment 7•4 years ago
|
||
bugherder |
Assignee | ||
Updated•4 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago → 4 years ago
Resolution: --- → INVALID
Updated•4 years ago
|
Keywords: leave-open
Updated•3 years ago
|
Resolution: INVALID → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•