Skip to content

Commit

Permalink
Clarify local build instructions (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
avidal authored May 13, 2020
1 parent 84840d5 commit 55cf565
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@ $ git clone https://github.com/bytecodealliance/wasmtime-go

Next up you'll want to have a [local Wasmtime build
available](https://bytecodealliance.github.io/wasmtime/contributing-building.html).

You'll need to build at least the `wasmtime-c-api` crate, which, at the time of
this writing, would be:

```sh
$ cargo build -p wasmtime-c-api
```

Once you've got that you can set up the environment of this library with:

```sh
Expand Down
4 changes: 4 additions & 0 deletions ci/local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ if [ ! -d $build ]; then
build=$wasmtime/target/debug
fi

if [ ! -f $build/libwasmtime.a ]; then
echo 'Missing libwasmtime.a. Did you `cargo build -p wasmtime-c-api`?'
fi

mkdir -p build/{include,linux-x86_64,macos-x86_64}
ln -s $build/libwasmtime.a build/linux-x86_64/libwasmtime.a
ln -s $build/libwasmtime.a build/macos-x86_64/libwasmtime.a
Expand Down

0 comments on commit 55cf565

Please sign in to comment.