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)

enhancement

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox90 --- wontfix
firefox91 --- fixed

People

(Reporter: dbezhetskov, Assigned: dbezhetskov)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 1 obsolete file)

No description provided.
Blocks: sm-wasi
  1. Remove the rpath-link linker flag because wasm-ld doesn't support it.
  2. Add <unistd.h> because implicit declaration of function {lseek, read, write} is invalid in C99`.
  3. Ifdef tzset because wasi doesn't support it.
  4. 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.
  5. Adjust some new tests because WASI doesn't support Intl, SharedArrayBuffer and to many recursion calls.
Assignee: nobody → dbezhetskov

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.

Attachment #9223737 - Attachment is obsolete: true

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.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
Status: RESOLVED → UNCONFIRMED
Resolution: FIXED → ---
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
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → INVALID
Resolution: INVALID → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: