switch compiler to go instead of tinygo, TODO: increases size significantly

This commit is contained in:
alu
2026-09-02 18:46:17 +00:00
parent ab5ab2b81b
commit 7bbd8f6eb3
4 changed files with 337 additions and 312 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ build: clean
@echo "======================== Building Binary ======================="
mkdir -p dist
cp wfa.js dist/wfa.js
GOOS=js GOARCH=wasm CGO_ENABLED=0 tinygo build -panic=trap -no-debug -opt=s -target=wasm -o dist/wfa.wasm .
GOOS=js GOARCH=wasm CGO_ENABLED=0 go build -ldflags="-s -w" -trimpath -o dist/wfa.wasm .
clean:
@echo "======================== Cleaning Project ======================"