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) <noreply@anthropic.com>
This commit is contained in:
Darryl L. Miles 2026-07-22 13:59:18 +00:00 committed by R. Timothy Edwards
parent c7bb0eeac8
commit d0b0557915
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ endif
main: magic proto.magicrc
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
tcl-main: tclmagic${SHDLIB_EXT} proto.magicrc