From e73ab0a7880c09d45d042e03f1a1dbb41269128d Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Thu, 16 Apr 2026 12:47:06 +0200 Subject: [PATCH] update build recipe: copy wasm-module source to build directory for archival --- nixos.just | 1 + wasm.just | 3 +++ 2 files changed, 4 insertions(+) diff --git a/nixos.just b/nixos.just index b0daa3d..ffd1de2 100644 --- a/nixos.just +++ b/nixos.just @@ -151,6 +151,7 @@ build module="__help" target="fail" mode="aot": just clean {{ module }} just create-build-dir {{ module }} + just copy-c-module {{ module }} if [ "{{ mode }}" = "aot" ]; then just build-wasm-module {{ module }} diff --git a/wasm.just b/wasm.just index 9cdc234..1b9eb32 100644 --- a/wasm.just +++ b/wasm.just @@ -101,6 +101,9 @@ build-c-module module target="fail": exit 1 fi +copy-c-module module: + cp targets/wasm-module/{{ module }}.cpp {{ BUILD_DIR }}-{{ module }}/wasm-module.cpp + # =================================================================================================================== # # Host program recipes # =================================================================================================================== #