WASI-enabled WebAssembly C/C++ toolchain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
Dan Gohman a6c0a9b3a4
Add several tests to test printf of various configurations.
5 years ago
.github/workflows [CI] Run make check after running the build. 5 years ago
src Roll wasi-libc to include snapshot1 (#84) 5 years ago
tests Add several tests to test printf of various configurations. 5 years ago
.dockerignore Add .dockerignore file (#63) 5 years ago
.gitignore produce deb and tars 6 years ago
.gitmodules Update to latest wasi-libc (formerly wasi-sysroot) and llvm 8.0.1. 6 years ago
CODE_OF_CONDUCT.md Add a CODE_OF_CONDUCT.md file. 5 years ago
Dockerfile Dockerfile: Use debian/stretch as base image (#65) 5 years ago
Makefile Add NINJA_FLAGS support (#92) 5 years ago
README.md Mention that setjmp/longjmp are not yet supported. 5 years ago
deb_from_installation.sh Github Actions uploads built artifacts (#83) 5 years ago
docker_build.sh produce deb and tars 6 years ago
llvm_version.sh Allow llvm-project path change; version from llvm-config. 6 years ago
tar_from_installation.sh Github Actions uploads built artifacts (#83) 5 years ago
version.sh build system fixups 6 years ago
wasi-sdk.cmake Rename sysroot to wasi-sysroot. 6 years ago
wasi-sdk.control initial commit 6 years ago

README.md

WASI SDK

Build Status

Quick Start

Download SDK packages here.

About this repository

This repository contains no compiler or library code itself; it uses git submodules to pull in the upstream Clang and LLVM tree, as well as the wasi-libc tree.

The libc portion of this SDK is the wasi-libc.

Upstream Clang and LLVM 8.0 can compile for WASI out of the box, and WebAssembly support is included in them by default. So, all that's done here is to provide builds configured to set the default target and sysroot for convenience.

One could also use a standard Clang 8.0, build a sysroot from the sources mentioned above, and compile with "--target=wasm32-wasi --sysroot=/path/to/sysroot".

Notes for Autoconf

Upstream autoconf now recognizes WASI.

For convenience when building packages that aren't yet updated, updated config.sub and config.guess files are installed at share/misc/config.* in the install directory.

Notable Limitations

This repository does not yet support C++ exceptions. C++ code is supported only with -fno-exceptions for now. Similarly, there is not yet support for setjmp/longjmp. Work on support for exception handling s underway at the language level which will support both of these features.

This repository does not yet support threads. Specifically, WASI does not yet have an API for creating and managing threads yet, and WASI libc does not yet have pthread support.

This repository does not yet support dynamic libraries. While there are some efforts to design a system for dynamic libraries in wasm, it is still in development and not yet generally usable.

There is no support for networking. It is a goal of WASI to support networking in the future though.