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

Method compile

static/panes/executor.ts:288–324  ·  view source on GitHub ↗
(bypassCache?: BypassCache)

Source from the content-addressed store, hash-verified

286 }
287
288 compile(bypassCache?: BypassCache): void {
289 if (this.deferCompiles) {
290 this.needsCompile = true;
291 return;
292 }
293 this.needsCompile = false;
294 this.compileTimeLabel.text(' - Compiling...');
295 const options: CompilationRequestOptions = {
296 userArguments: this.options,
297 executeParameters: {
298 args: this.executionArguments,
299 stdin: this.executionStdin,
300 runtimeTools: this.compilerShared.getRuntimeTools(),
301 },
302 compilerOptions: {
303 executorRequest: true,
304 skipAsm: true,
305 overrides: this.compilerShared.getOverrides(),
306 },
307 filters: {execute: true},
308 tools: [],
309 libraries: [],
310 };
311
312 this.libsWidget?.getLibsInUse().forEach(item => {
313 options.libraries.push({
314 id: item.libId,
315 version: item.versionId,
316 });
317 });
318
319 if (this.sourceTreeId) {
320 this.compileFromTree(options, bypassCache);
321 } else {
322 this.compileFromEditorSource(options, bypassCache);
323 }
324 }
325
326 compileFromEditorSource(options: CompilationRequestOptions, bypassCache?: BypassCache): void {
327 if (!this.compiler || !this.compilerIsVisible(this.compiler)) {

Callers 15

postInitMethod · 0.95
undeferMethod · 0.95
onEditorChangeMethod · 0.95
onLibsChangedMethod · 0.95
initCallbacksMethod · 0.95
doTypicalOnChangeMethod · 0.95
onRequestCompilationMethod · 0.95
onCompilerChangeMethod · 0.95
docenizer-perl.pyFile · 0.45
docenizer-amd64.pyFile · 0.45

Calls 6

compileFromTreeMethod · 0.95
getLibsInUseMethod · 0.80
pushMethod · 0.80
getRuntimeToolsMethod · 0.65
getOverridesMethod · 0.65

Tested by

no test coverage detected