Skip to content

Commit

Permalink
Try doing a module version
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Aug 21, 2024
1 parent 8d3a4cb commit b2b00cf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cplusplus/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/_static/test-c.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div id="mocha"></div>
<!-- Mocha setup and initiation code -->
<script type="module">
import * as wasm from './dist/c/lib.js';
import * as wasm from './dist/c-lib.mjs';
mocha.setup('bdd');
window.onload = function() {
for (let p = 1; p < 10000; p++) {
Expand Down
2 changes: 1 addition & 1 deletion docs/_static/test-cp.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div id="mocha"></div>
<!-- Mocha setup and initiation code -->
<script type="module">
import * as wasm from './dist/cp/lib.js';
import * as wasm from './dist/cp-lib.js';
mocha.setup('bdd');
window.onload = function() {
for (let p = 1; p < 10000; p++) {
Expand Down

0 comments on commit b2b00cf

Please sign in to comment.