MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / find

Method find

lib/compiler-finder.ts:585–603  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 15

getInstructionListFunction · 0.80
getInstructionInfoFunction · 0.80
get_descriptionFunction · 0.80
parseFunction · 0.80
extractFunction · 0.80
mainFunction · 0.80
get_docFunction · 0.80
includeMethod · 0.80
provideFunction · 0.80

Calls 10

getCompilersMethod · 0.95
ensureDistinctMethod · 0.95
basic_comparatorFunction · 0.85
errorMethod · 0.80
sortMethod · 0.80
getMethod · 0.65
setPossibleToolchainsMethod · 0.45
setCompilersMethod · 0.45

Tested by

no test coverage detected