From 5fef2cdbd216bc8a03a102cc1a05ba2be322a2a5 Mon Sep 17 00:00:00 2001 From: leaf-hero Date: Wed, 13 May 2020 10:39:26 -0500 Subject: [PATCH] Clarify local build instructions (#8) --- README.md | 8 ++++++++ ci/local.sh | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index 13b6cbf..97d1242 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/ci/local.sh b/ci/local.sh index 430c2fc..70eebf4 100755 --- a/ci/local.sh +++ b/ci/local.sh @@ -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