From 11a5a35485853c722d55dca32a6c3175ecdea8fb Mon Sep 17 00:00:00 2001 From: LongYinan Date: Tue, 7 Dec 2021 21:45:01 +0800 Subject: [PATCH] feat(cli): workaround for Windows i686 ICE in dev mode --- cli/src/build.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/src/build.ts b/cli/src/build.ts index a9a95c01..c83f6bfb 100644 --- a/cli/src/build.ts +++ b/cli/src/build.ts @@ -148,6 +148,7 @@ export class BuildCommand extends Command { this.disableWindowsX32Optimize ) { Object.assign(additionalEnv, { + CARGO_PROFILE_DEBUG_CODEGEN_UNITS: 256, CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 256, CARGO_PROFILE_RELEASE_LTO: false, })