This repository has been archived on 2023-11-05. You can view files and clone it, but cannot push or open issues or pull requests.
wasm-micro-runtime/test-tools/toolchain
Weining 27f246b5f3 Enable WASI feature, enhance security and add SGX sample (#142)
Change emcc to clang
Refine interpreter to improve perforamnce
2019-11-20 21:16:36 +08:00
..
sysroot Enable WASI feature, enhance security and add SGX sample (#142) 2019-11-20 21:16:36 +08:00
generate_toolchain.py Relicense to Apache-2.0 with the LLVM-exception (#137) 2019-11-12 07:45:21 +08:00
README.md Add toolchain for WAMR (#127) 2019-09-26 19:35:37 +08:00
wamr_toolchain.cmake Relicense to Apache-2.0 with the LLVM-exception (#137) 2019-11-12 07:45:21 +08:00

Cross Compile Toolchain for Wasm Micro Runtime

This folder contains sysroot and toolchain files for building wasm application by using cmake.

Build a project

To build a C project into wasm, you may use the toolchain file provided here as wamr_toolchain.cmake:

cmake /path/to/CMakeLists.txt -DCMAKE_TOOLCHAIN_FILE=/path/to/wamr_toolchain.cmake
make

Generate a toolchain for your runtime

If you extend more APIs of wasm runtime by using EXPORT_WASM_API API, we also provide a tool which allow you to generate the toolchain for your runtime:

./generate_toolchain.py -o out_dir -f api_list_file

A toolchain which enables your extended APIs should be generated in the path you specified.