WebAssembly / WebAssembly/wasi-sdk

Instructions for compiling `libclang_rt.builtins-wasm32.a`?

Open
#36 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
CMake
Stars
1.6k
Forks
237
Avg merge
18h 26m
Merged PRs (30d)
5

Description

I'm trying to use clang-9 to compile and use wasi-sysroot, but additionally the libclang_rt.builtins-wasm32.a file is required to link into the final wasm module. It is not obvious how to build this file without building the llvm/clang submodules first, so it would be much appreciated if you can add relevant instructions. Thanks a lot!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how clang-9, wasi-sysroot, and the llvm/clang submodules are used to produce libclang_rt.builtins-wasm32.a. Add relevant build instructions to the appropriate wasi-sdk documentation, including whether the submodules must be built, and confirm that a newcomer can follow them to obtain the archive for final wasm linking.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, wasm
Domain
build-system, compilers
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.