Skip to content

Commit

Permalink
Fix bash script on macOS (bytecodealliance#88)
Browse files Browse the repository at this point in the history
`readlink -f` is not existing in macOS, so this commit uses another way
to get an absolute path for wasmtime build directory.

Fixes bytecodealliance#87
  • Loading branch information
olivierlemasle authored Jun 25, 2021
1 parent 2f1b8a9 commit ef5be5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ ! -d "$build" ]; then
build="$wasmtime/target/debug"
fi
# Use absolute path for symbolic links
build=$(readlink -f "$build")
build=$(cd "$build" && pwd)

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

0 comments on commit ef5be5d

Please sign in to comment.