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

Method getIncludeArguments

lib/compilers/rust.ts:161–176  ·  view source on GitHub ↗
(libraries: SelectedLibraryVersion[])

Source from the content-addressed store, hash-verified

159 }
160
161 override getIncludeArguments(libraries: SelectedLibraryVersion[]) {
162 const includeFlag = '--extern';
163 return libraries.flatMap(selectedLib => {
164 const foundVersion = this.findLibVersion(selectedLib);
165 if (!foundVersion?.name) return [];
166 const lowercaseLibName = foundVersion.name.replaceAll('-', '_');
167 return foundVersion.path.flatMap(rlib => {
168 return [
169 includeFlag,
170 `${lowercaseLibName}=${foundVersion.name}/build/debug/${rlib}`,
171 '-L',
172 `dependency=${foundVersion.name}/build/debug/deps`,
173 ];
174 });
175 });
176 }
177
178 override orderArguments(
179 options: string[],

Callers

nothing calls this directly

Calls 2

replaceAllMethod · 0.80
findLibVersionMethod · 0.45

Tested by

no test coverage detected