From 9c175b1865573fa8589268077c06ab5e6bef9fea Mon Sep 17 00:00:00 2001 From: Linghong Date: Fri, 12 Jun 2026 23:11:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Windows=20=E4=B8=8B=20CARG?= =?UTF-8?q?O=5FBUILD=5FRUSTC=5FWRAPPER=3Drustc=20=E5=AF=BC=E8=87=B4=20wasm?= =?UTF-8?q?32=20=E7=BC=96=E8=AF=91=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit dev.mjs 在 Windows 上将 bypass wrapper 设为 'rustc',导致 Cargo 执行 rustc <真实路径> - ... 时 rustc 将真实路径和 stdin 识别为两个输入文件报错 multiple input filenames。改为空字符串彻底禁用 wrapper。 --- scripts/dev.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dev.mjs b/scripts/dev.mjs index eb959365..86873ca2 100644 --- a/scripts/dev.mjs +++ b/scripts/dev.mjs @@ -37,7 +37,7 @@ const manifestPath = resolve(serverRsDir, 'Cargo.toml'); const modulePath = resolve(serverRsDir, 'crates/spacetime-module'); const viteCliPath = resolve(repoRoot, 'scripts/vite-cli.mjs'); const adminWebDir = resolve(repoRoot, 'apps/admin-web'); -const LOCAL_DEV_RUSTC_WRAPPER_BYPASS = process.platform === 'win32' ? 'rustc' : '/usr/bin/env'; +const LOCAL_DEV_RUSTC_WRAPPER_BYPASS = process.platform === 'win32' ? '' : '/usr/bin/env'; const SERVICE_NAMES = ['spacetime', 'api-server', 'web', 'admin-web']; const SERVICE_ALIASES = new Map([