Skip to content

Lind-Project/lind-wasm

Repository files navigation

First you need to download lind-wasm in your docker to home directory

sudo git clone https://github.com/Lind-Project/lind-wasm.git

I assume you have rust else use

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs/ | sh
rustup install nightly
. "$HOME/.cargo/env"
rustup default nightly

set Clang path

export CLANG=clang_folder
cd lind-wasm
mv ./src/glibc/wasi $CLANG/lib/clang/16/lib
./lindtool.sh make_all
./lindtool.sh compile_wasmtime

Now let try to print hello world! by printf

./lindtool.sh cptest PATH_TO_TEST
./lindtool.sh run PATH_TO_TEST