From 1f4b00f699d36d8c6e41fbc4cf82ada5a6e69b20 Mon Sep 17 00:00:00 2001 From: Yisheng Jiang Date: Sat, 8 Apr 2023 23:44:27 -0700 Subject: [PATCH] a --- spin/Makefile | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) mode change 100644 => 120000 spin/Makefile diff --git a/spin/Makefile b/spin/Makefile deleted file mode 100644 index 92fb7e77..00000000 --- a/spin/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -all: spin.wasm.js - -clean: src/spin.c - rm -f build/* - -build/spin.ll: clean - clang src/spin.c -o build/spin.ll --target=wasm32 -emit-llvm -c -S - -build/spin.o: build/spin.ll - llc -march=wasm32 -filetype=obj build/spin.ll -o build/spin.o - -spin.wasm: build/spin.o - wasm-ld --features=atomics,mutable-global --shared-memory --no-check-features --max-memory=1073741824 --allow-undefined --import-memory --no-entry --export-all -o spin.wasm build/spin.o - -spin.wasm.js: spin.wasm - cat spin.wasm | npx encode-wasm-uint8 > spin.wasm.js diff --git a/spin/Makefile b/spin/Makefile new file mode 120000 index 00000000..045be95b --- /dev/null +++ b/spin/Makefile @@ -0,0 +1 @@ +Makfile-safe \ No newline at end of file