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

Method getIncludeArguments

lib/compilers/zig.ts:174–186  ·  view source on GitHub ↗
(libraries: SelectedLibraryVersion[])

Source from the content-addressed store, hash-verified

172 }
173
174 override getIncludeArguments(libraries: SelectedLibraryVersion[]) {
175 return libraries.flatMap(selectedLib => {
176 const foundVersion = this.findLibVersion(selectedLib);
177 if (!foundVersion) return [];
178 // Zig should not have more than 1 path, but it's still an array so spread it
179 return [
180 '--pkg-begin',
181 ...(foundVersion.name ? [foundVersion.name] : []),
182 ...foundVersion.path,
183 '--pkg-end',
184 ];
185 });
186 }
187
188 override getIrOutputFilename(inputFilename: string): string {
189 return this.getOutputFilename(path.dirname(inputFilename), this.outputFilebase).replace('.s', '.ll');

Callers

nothing calls this directly

Calls 1

findLibVersionMethod · 0.45

Tested by

no test coverage detected