From 9d791d53a61e3f4014d71bfb92dc297e0ad93175 Mon Sep 17 00:00:00 2001 From: wangdequan Date: Mon, 10 Aug 2026 17:05:41 -0400 Subject: [PATCH] fix: keep OpenCAMLib build script valid JavaScript --- scripts/build-opencamlib-wasm.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build-opencamlib-wasm.mjs b/scripts/build-opencamlib-wasm.mjs index a4d02c0..d93fe38 100644 --- a/scripts/build-opencamlib-wasm.mjs +++ b/scripts/build-opencamlib-wasm.mjs @@ -37,8 +37,8 @@ const reproducibleLink = originalLink.replace(/\s+--closure\s+1\b/, '') if (reproducibleLink === originalLink) throw new Error('OpenCAMLib generated link command did not contain the expected optional Closure flag.') await writeFile(linkPath, reproducibleLink) execFileSync('cmake', ['--build', build, '--target', 'ocl', '--parallel', '4'], { cwd: root, stdio: 'inherit' }) -# Normalize the generated single-file loader before it becomes the public -# artifact. This removes Emscripten's version-sensitive whitespace-only line. +// Normalize the generated single-file loader before it becomes the public +// artifact. This removes Emscripten's version-sensitive whitespace-only line. execFileSync('perl', ['-pi', '-e', 's/[ \\t]+$//', resolve(build, 'ocl.js')]) execFileSync('cmake', ['--install', build], { cwd: root, stdio: 'inherit' }) console.log(`Built OpenCAMLib ${revision} into ${install}`)