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

Method runExecutable

lib/base-compiler.ts:2282–2298  ·  view source on GitHub ↗
(
        executable: string,
        executeParameters: ExecutableExecutionOptions,
        homeDir: string,
    )

Source from the content-addressed store, hash-verified

2280 }
2281
2282 async runExecutable(
2283 executable: string,
2284 executeParameters: ExecutableExecutionOptions,
2285 homeDir: string,
2286 ): Promise<BasicExecutionResult> {
2287 const execOptionsCopy: ExecutableExecutionOptions = JSON.parse(
2288 JSON.stringify(executeParameters),
2289 ) as ExecutableExecutionOptions;
2290
2291 if (this.compiler.executionWrapper) {
2292 execOptionsCopy.args = [...this.compiler.executionWrapperArgs, executable, ...execOptionsCopy.args];
2293 executable = this.compiler.executionWrapper;
2294 }
2295
2296 const execEnv: IExecutionEnvironment = new this.executionEnvironmentClass(this.env);
2297 return execEnv.execBinary(executable, execOptionsCopy, homeDir);
2298 }
2299
2300 protected fixExecuteParametersForInterpreting(
2301 executeParameters: ExecutableExecutionOptions,

Callers 3

handleInterpretingMethod · 0.95
doExecutionMethod · 0.95
cmakeMethod · 0.95

Calls 2

execBinaryMethod · 0.65
parseMethod · 0.45

Tested by

no test coverage detected