File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ export async function activate(context: vscode.ExtensionContext): Promise<CppToo
37
37
await util . checkCuda ( ) ;
38
38
39
39
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' ) ) {
42
42
errMsg = localize ( "architecture.not.supported" , "Architecture {0} is not supported. " , String ( arch ) ) ;
43
43
} else if ( process . platform === 'linux' && fs . existsSync ( '/etc/alpine-release' ) ) {
44
44
errMsg = localize ( "apline.containers.not.supported" , "Alpine containers are not supported." ) ;
You can’t perform that action at this time.
0 commit comments