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

Method getTargetFlags

lib/base-compiler.ts:4090–4096  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4088 }
4089
4090 getTargetFlags(): string[] {
4091 if (this.compiler.supportsMarch) return [`-march=${c_value_placeholder}`];
4092 if (this.compiler.supportsTargetIs) return [`--target=${c_value_placeholder}`];
4093 if (this.compiler.supportsTarget) return ['--target', c_value_placeholder];
4094 if (this.compiler.supportsHyphenTarget) return ['-target', c_value_placeholder];
4095 return [];
4096 }
4097
4098 getAllPossibleTargetFlags(): string[][] {
4099 const all: string[][] = [];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected