MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / getSupportedLibraries

Function getSupportedLibraries

static/lib-utils.ts:59–71  ·  view source on GitHub ↗
(
    supportedLibrariesArr: string[] | undefined,
    langId: string,
    remote?: Remote,
)

Source from the content-addressed store, hash-verified

57}
58
59export async function getSupportedLibraries(
60 supportedLibrariesArr: string[] | undefined,
61 langId: string,
62 remote?: Remote,
63): Promise<LanguageLibs> {
64 const allLibs = remote
65 ? await libsService.getRemoteLibs(langId, remote.target + remote.basePath)
66 : await libsService.getLibsForLang(langId);
67 if (supportedLibrariesArr && supportedLibrariesArr.length > 0) {
68 return copyAndFilterLibraries(allLibs, supportedLibrariesArr);
69 }
70 return allLibs;
71}

Callers

nothing calls this directly

Calls 3

copyAndFilterLibrariesFunction · 0.85
getRemoteLibsMethod · 0.80
getLibsForLangMethod · 0.80

Tested by

no test coverage detected