mirror of
https://github.com/goplus/llgo.git
synced 2025-09-26 19:51:21 +08:00
12 lines
233 B
Bash
Executable File
12 lines
233 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
WORKDIR=''
|
|
WORKDIR=$(pwd)
|
|
LLGO_ROOT=''
|
|
LLGO_ROOT=$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )
|
|
export LLGO_ROOT
|
|
cd $LLGO_ROOT
|
|
go install ./cmd/llgo
|
|
cd $WORKDIR
|
|
GOOS=wasip1 GOARCH=wasm llgo "$@"
|