From 13c4a755e66cbff0ac0c65eece015bddbe152ed2 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 24 Mar 2025 01:30:53 +0800 Subject: Use a WebAssembly solver --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a75b758..55b8578 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,10 @@ -powxy: *.go version.go +powxy: *.go version.go wasm/solver.wasm go build -o powxy version.go: printf 'package main\n\nfunc init() {\n\tglobal.Version = "%s"\n}\n' $(shell git describe --tags --always --dirty) > $@ +wasm/solver.wasm: wasm/solver.c wasm/sha256.c wasm/sha256.h + clang --target=wasm32 -nostdlib -Wl,--no-entry -Wl,--export-all -o wasm/solver.wasm wasm/solver.c wasm/sha256.c + .PHONY: version.go -- cgit v1.2.3