Skip to content

Commit 0c83eea

Browse files
committed
massively speed up running zcc
1 parent 5f17a2b commit 0c83eea

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ bin/dash-wasm*
66
bin/python-native
77
bin/zd
88
bin/zdb
9+
bin/wasi-js
910
bin/cython
1011
bin/cowasm*
1112
bin/*-wasm

core/wasi-js/Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include ../build/Makefile-vars
22

3-
all: ${DIST}/.built
3+
all: ${DIST}/.built ${BIN}/wasi-js
44

55
include ../build/Makefile-rules
66

@@ -9,6 +9,13 @@ ${DIST}/.built: node_modules
99
pnpm run build
1010
touch ${DIST}/.built
1111

12+
# eventually ${BIN}/cowasm should jsut call wasi-js when the executable isn't a DLL
13+
# For now we just directly run this wasi-js script. This is used by zcc and z++.
14+
${BIN}/wasi-js: ${DIST}/.built
15+
ln -sf `pwd`/bin/run.js ${BIN}/wasi-js
16+
touch ${BIN}/wasi-js
17+
18+
1219
# There's a lot of testing of this in cowasm-python right now...
1320

1421
test: ${DIST}/.built

sagemath/pari/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ include ../build/Makefile-rules
1515

1616
${DIST_WASM}/.built: node_modules ${BUILD_WASM}/.build
1717
cd ${BUILD_WASM} && \
18-
CC="cowasm-cc" \
18+
CC="zcc" \
1919
AR="zig ar" \
2020
RANLIB="zig ranlib" \
2121
./Configure \

0 commit comments

Comments
 (0)