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

Method getLibcxx

lib/buildenvsetup/base.ts:191–205  ·  view source on GitHub ↗
(key: CacheKey)

Source from the content-addressed store, hash-verified

189 }
190
191 getLibcxx(key: CacheKey): string {
192 const match = this.compiler.options.match(/-stdlib=(\S*)/i);
193 if (match) {
194 return match[1];
195 }
196 const stdlibOption: string | undefined = _.find(key.options, option => {
197 return option.startsWith('-stdlib=');
198 });
199
200 if (stdlibOption) {
201 return stdlibOption.substring(8);
202 }
203
204 return this.defaultLibCxx;
205 }
206
207 getTarget(key: CacheKey): string {
208 if (this.compilerTypeOrGCC === 'win32-vc') {

Callers 1

Calls 2

matchMethod · 0.80
findMethod · 0.80

Tested by

no test coverage detected