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 # =================================================================================================================== #