()
| 583 | } |
| 584 | |
| 585 | async find() { |
| 586 | this.checkOrphanedProperties(); |
| 587 | |
| 588 | const compilerList = await this.getCompilers(); |
| 589 | |
| 590 | const toolchains = await getPossibleGccToolchainsFromCompilerInfo(compilerList); |
| 591 | this.compileHandler.setPossibleToolchains(toolchains); |
| 592 | |
| 593 | const compilers = await this.compileHandler.setCompilers(compilerList, this.optionsHandler.get()); |
| 594 | if (!compilers) { |
| 595 | logger.error('#### No compilers found: no compilation will be done!'); |
| 596 | throw new Error('No compilers found due to error or no configuration'); |
| 597 | } |
| 598 | const result = this.ensureDistinct(compilers); |
| 599 | return { |
| 600 | foundClash: result.foundClash, |
| 601 | compilers: result.compilers.sort((a, b) => basic_comparator(a.name, b.name)), |
| 602 | }; |
| 603 | } |
| 604 | |
| 605 | async loadPrediscovered(compilers: CompilerInfo[]) { |
| 606 | for (const compiler of compilers) { |
no test coverage detected