Skip to content

Commit 94ab7f9

Browse files
authored
Fix 32-bit Windows. (#7373)
1 parent e5abb36 commit 94ab7f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Extension/src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export async function activate(context: vscode.ExtensionContext): Promise<CppToo
3737
await util.checkCuda();
3838

3939
let errMsg: string = "";
40-
const arch: string = os.arch();
41-
if (arch !== 'x64' && (process.platform !== 'win32' || (arch !== 'ia32' && arch !== 'arm64')) && (process.platform !== 'linux' || (arch !== 'x64' && arch !== 'arm' && arch !== 'arm64')) && (process.platform !== 'darwin' || arch !== 'arm64')) {
40+
const arch: string = PlatformInformation.GetArchitecture();
41+
if (arch !== 'x64' && (process.platform !== 'win32' || (arch !== 'x86' && arch !== 'arm64')) && (process.platform !== 'linux' || (arch !== 'x64' && arch !== 'arm' && arch !== 'arm64')) && (process.platform !== 'darwin' || arch !== 'arm64')) {
4242
errMsg = localize("architecture.not.supported", "Architecture {0} is not supported. ", String(arch));
4343
} else if (process.platform === 'linux' && fs.existsSync('/etc/alpine-release')) {
4444
errMsg = localize("apline.containers.not.supported", "Alpine containers are not supported.");

0 commit comments

Comments
 (0)