All files / utils/types IGccToolchain.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24                                               
/**
 * How GCC compiles for one target (#1668's target matrix; #1713 reads it too).
 *
 * Derived from a target description's `toolchain_triple` and `toolchain_cpu`
 * by `TargetToolchain.gccFor`, the one place that knows which GCC driver
 * builds for which architecture.
 */
interface IGccToolchain {
  /**
   * Prepended to `gcc` or `g++`: `arm-none-eabi-` or `avr-`, and "" for the
   * build machine's own compiler
   */
  readonly driverPrefix: string;
  /** Flags selecting the architecture and part: `-mthumb -mcpu=cortex-m4` */
  readonly archFlags: readonly string[];
  /**
   * Whether generated code for this architecture calls the CMSIS-Core
   * intrinsics (`cmsis_gcc.h`), which no C library ships
   */
  readonly cmsisCore: boolean;
}
 
export default IGccToolchain;