Skip to content

Commit

Permalink
Fix 32-bit Windows. (#7373)
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-mcmanus authored Apr 15, 2021
1 parent e5abb36 commit 94ab7f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Extension/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export async function activate(context: vscode.ExtensionContext): Promise<CppToo
await util.checkCuda();

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

0 comments on commit 94ab7f9

Please sign in to comment.