[llvm-bugs] [Bug 40672] New: [WebAssembly] Fix custom import names for WASI
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Feb 8 21:33:04 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=40672
Bug ID: 40672
Summary: [WebAssembly] Fix custom import names for WASI
Product: libraries
Version: trunk
Hardware: Other
OS: other
Status: NEW
Severity: release blocker
Priority: P
Component: Backend: WebAssembly
Assignee: dan433584 at gmail.com
Reporter: dan433584 at gmail.com
CC: llvm-bugs at lists.llvm.org
Blocks: 40331
Created attachment 21455
--> https://bugs.llvm.org/attachment.cgi?id=21455&action=edit
lld 8.0 patch
WIth the 8.0 release branch and the latest WASI changes, LLVM's WebAssembly
support's handling of import module names doesn't support WASI exports. A
series of clang, llvm, and lld patches on trunk fixes the issue, so we'd like
to backport them to 8.0:
For clang: r352106, r352108, r352930, r352936
For lld: r352645, r352828, r353473
For LLVM: r352479, r352931, r353474, r353476
However, the trunk patches don't apply cleanly to 8.0 due to some unrelated
mass-rename/clang-tidy patches, so I've carefully backported and revised the
needed patches to avoid bringing in extra dependencies, tested them on the 8.0
release branch, and attached them to this bug.
This is admittedly a bigger and later change than one would like, and I'll
accept the judgment of the release manager. I propose it's worth considering.
The risk is relatively low: the patches only change WebAssembly-specific areas,
and most production WebAssembly users are currently using LLVM's WebAssembly
support through Emscripten, the Rust toolchain, Wasmception, or other
environments which aren't using the LLVM release branches anyway.
For people who want to use clang/LLVM directly, rather than through one of
those other environments, WASI support would provide standard headers and
libraries that can be compiled with to produce WebAssembly programs that don't
depend on any JS APIs.
Let me know if you have any questions, or if there's anything I can do to help
in this process. Thanks!
Referenced Bugs:
https://bugs.llvm.org/show_bug.cgi?id=40331
[Bug 40331] [meta] 8.0.0 Release Blockers
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190209/d7539f7d/attachment.html>
More information about the llvm-bugs
mailing list