From b2b00cf1f64456c9f474df10527e42fd761a1a49 Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Wed, 21 Aug 2024 18:13:41 -0500 Subject: [PATCH] Try doing a module version --- c/Makefile | 4 ++-- cplusplus/Makefile | 2 +- docs/_static/test-c.html | 2 +- docs/_static/test-cp.html | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/c/Makefile b/c/Makefile index 2a5678c8..7adef637 100644 --- a/c/Makefile +++ b/c/Makefile @@ -68,9 +68,9 @@ native_test: native clean: @rm -rf build dist {.,*,*/*}/{*.pyc,__pycache__,.mypy_cache,.pytest_cache,.benchmarks} || echo -dist/lib.wasm: build/c-lib.c +dist/c-lib.wasm: build/lib.c @mkdir -p dist - @emcc build/lib.c -Wl,--whole-archive -DUNITY_END -O$(O) -o dist/c-lib.js + @emcc build/lib.c -Wl,--whole-archive -DUNITY_END -O$(O) -o dist/c-lib.mjs build/lib.c: ../LICENSE @mkdir -p build diff --git a/cplusplus/Makefile b/cplusplus/Makefile index 04535315..a842df99 100644 --- a/cplusplus/Makefile +++ b/cplusplus/Makefile @@ -62,7 +62,7 @@ clean: dist/cp-lib.wasm: build/lib.cpp @mkdir -p dist - @emcc build/lib.cpp -Wl,--whole-archive -DUNITY_END -O$(O) -o dist/cp-lib.js + @emcc build/lib.cpp -Wl,--whole-archive -DUNITY_END -O$(O) -o dist/cp-lib.mjs build/lib.cpp: ../LICENSE @mkdir -p build diff --git a/docs/_static/test-c.html b/docs/_static/test-c.html index 73331d28..c5753529 100644 --- a/docs/_static/test-c.html +++ b/docs/_static/test-c.html @@ -11,7 +11,7 @@