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

Method runReadelf

lib/compilers/assembly.ts:86–96  ·  view source on GitHub ↗
(fullResult: BuildResult, objectFilename: string)

Source from the content-addressed store, hash-verified

84 }
85
86 async runReadelf(fullResult: BuildResult, objectFilename: string) {
87 const execOptions = this.getDefaultExecOptions();
88 execOptions.customCwd = path.dirname(objectFilename);
89 return await this.doBuildstepAndAddToResult(
90 fullResult,
91 'readelf',
92 this.env.ceProps('readelf') as string,
93 ['-h', objectFilename],
94 execOptions,
95 );
96 }
97
98 async getArchitecture(fullResult: BuildResult, objectFilename: string): Promise<Arch> {
99 const result = await this.runReadelf(fullResult, objectFilename);

Callers 1

getArchitectureMethod · 0.95

Calls 2

getDefaultExecOptionsMethod · 0.45

Tested by

no test coverage detected