diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-12-20 16:28:36 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-12-20 16:28:36 +0000 |
| commit | a0fdc0e6dd56616bb7519969e47518321b7a2685 (patch) | |
| tree | d7e4cdb921e37e48bc1afa537d958ee8bc90dbcb /runtime/makefile | |
| parent | 9c22159b16d5346721f29f818e3d756c0ecd4647 (diff) | |
Read jmp_buf size instead of hard-coding
Diffstat (limited to 'runtime/makefile')
| -rw-r--r-- | runtime/makefile | 19 |
1 files changed, 14 insertions, 5 deletions
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 |
