build: WASM post-build.sh from the source tree (out-of-tree)

magic/Makefile ran the WASM post-processor via ${MAGICDIR} (the build
top).  Out-of-tree that resolves to build/toolchains/... which does not
exist — the script is a source file.  Use ${MAGICSRC}.  In-tree the two
are identical, so behaviour is unchanged there.

(Static edit; not runtime-verified — emscripten is not available here.)

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This commit is contained in:
Darryl L. Miles
2026-07-26 14:54:11 -04:00
committed by R. Timothy Edwards
co-authored by Claude Opus 4.8
parent c7bb0eeac8
commit d0b0557915
+1 -1
View File
@@ -68,7 +68,7 @@ endif
main: magic proto.magicrc main: magic proto.magicrc
ifeq (${MAKE_WASM},1) ifeq (${MAKE_WASM},1)
@bash ${MAGICDIR}/toolchains/emscripten/post-build.sh magic.js magic.wasm @bash ${MAGICSRC}/toolchains/emscripten/post-build.sh magic.js magic.wasm
endif endif
tcl-main: tclmagic${SHDLIB_EXT} proto.magicrc tcl-main: tclmagic${SHDLIB_EXT} proto.magicrc