build/ccompiler

Procs

proc getCompilerMode(path: string): string {...}{.raises: [], tags: [].}
Determines a target language mode from an input filename, if one is not already specified.
proc getGccModeArg(mode: string): string {...}{.raises: [], tags: [].}
Produces a GCC argument that explicitly sets the language mode to be used by the compiler.
proc getCompiler(): string {...}{.raises: [], tags: [ReadEnvEffect].}
proc getGccPaths(mode: string): seq[string] {...}{.
    raises: [ValueError, OSError, Exception, IOError, KeyError], tags: [ExecIOEffect,
    ReadIOEffect, RootEffect, WriteIOEffect, ReadEnvEffect, ReadDirEffect].}
proc getGccLibPaths(mode: string): seq[string] {...}{.
    raises: [ValueError, OSError, Exception, IOError, KeyError], tags: [ExecIOEffect,
    ReadIOEffect, RootEffect, WriteIOEffect, ReadEnvEffect, ReadDirEffect].}
proc getGccInfo(): tuple[arch, os, compiler, version: string] {...}{.
    raises: [ValueError, OSError, Exception, IOError, KeyError], tags: [ExecIOEffect,
    ReadIOEffect, RootEffect, WriteIOEffect, ReadEnvEffect, ReadDirEffect].}