From a0fdc0e6dd56616bb7519969e47518321b7a2685 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 20 Dec 2023 16:28:36 +0000 Subject: Read jmp_buf size instead of hard-coding --- runtime/makefile | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'runtime/makefile') diff --git a/runtime/makefile b/runtime/makefile index 15f7d2c0..50839acb 100644 --- a/runtime/makefile +++ b/runtime/makefile @@ -1,15 +1,24 @@ .PHONY: all -all: target/amd64/libshed.a target/wasm32/libshed.a +all: runtime-amd64 runtime-wasm32 -.PHONY: target/amd64/libshed.a +.PHONY: runtime-amd64 -target/amd64/libshed.a: +runtime-amd64: build-amd64 target/amd64/sizeof_jmp_buf.txt + +target/amd64/sizeof_jmp_buf.txt: build-amd64 + target/amd64/sizeof_jmp_buf > target/amd64/sizeof_jmp_buf.txt + +.PHONY: build-amd64 + +build-amd64: meson setup target/amd64 --werror cd target/amd64 && meson compile --verbose -.PHONY: target/wasm32/libshed.a +runtime-wasm32: build-wasm32 + +.PHONY: build-wasm32 -target/wasm32/libshed.a: +build-wasm32: meson setup target/wasm32 --cross-file wasm32.meson --werror cd target/wasm32 && meson compile --verbose -- cgit v1.2.3