From d0b0557915f5fdb328b4f8aa70f96496ad3395a9 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Wed, 22 Jul 2026 13:59:18 +0000 Subject: [PATCH] build: WASM post-build.sh from the source tree (out-of-tree) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- magic/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magic/Makefile b/magic/Makefile index a8f7389d..541e5fbe 100644 --- a/magic/Makefile +++ b/magic/Makefile @@ -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