feat(cli): workaround for Windows i686 ICE in dev mode

This commit is contained in:
LongYinan 2021-12-07 21:45:01 +08:00
parent af7583dadf
commit 11a5a35485
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7

View file

@ -148,6 +148,7 @@ export class BuildCommand extends Command {
this.disableWindowsX32Optimize this.disableWindowsX32Optimize
) { ) {
Object.assign(additionalEnv, { Object.assign(additionalEnv, {
CARGO_PROFILE_DEBUG_CODEGEN_UNITS: 256,
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 256, CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 256,
CARGO_PROFILE_RELEASE_LTO: false, CARGO_PROFILE_RELEASE_LTO: false,
}) })