(execCompilerCachedFunc: ExecCompilerCachedFunc)
| 66 | } |
| 67 | |
| 68 | async initialise(execCompilerCachedFunc: ExecCompilerCachedFunc) { |
| 69 | if (this.compilerArch) return; |
| 70 | |
| 71 | await this.hasSupportForArch(execCompilerCachedFunc, 'x86') |
| 72 | .then(res => (this.compilerSupportsX86 = res)) |
| 73 | .catch(error => { |
| 74 | // Log & keep going, we assume x86 is supported |
| 75 | logger.error('Could not check for x86 arch support', error); |
| 76 | }); |
| 77 | |
| 78 | if (this.compilerTypeOrGCC === 'win32-vc') { |
| 79 | await this.hasSupportForArch(execCompilerCachedFunc, 'x86_64') |
| 80 | .then(res => (this.compilerSupportsAMD64 = res)) |
| 81 | .catch(error => { |
| 82 | logger.error('Could not check for x86_64 arch support', error); |
| 83 | }); |
| 84 | |
| 85 | if (this.compilerSupportsX86) { |
| 86 | this.compilerArch = 'x86'; |
| 87 | } else if (this.compilerSupportsAMD64) { |
| 88 | this.compilerArch = 'x86_64'; |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | logger.debug( |
| 93 | `Compiler ${this.compiler.exe} supports x86: ${this.compilerSupportsX86}, x86_64: ${this.compilerSupportsAMD64}`, |
| 94 | ); |
| 95 | } |
| 96 | |
| 97 | protected get_support_check_text(group: string, compilerType: string, arch: string) { |
| 98 | if (group.includes('icc')) { |
no test coverage detected