compilesettings

This module allows querying the compiler about diverse configuration settings.

Types

SingleValueSetting {...}{.pure.} = enum
  arguments, outFile, outDir, nimcacheDir, projectName, projectPath,
  projectFull, command, commandLine, linkOptions, compileOptions, ccompilerPath,
  backend
settings resulting in a single string value   Source Edit
MultipleValueSetting {...}{.pure.} = enum
  nimblePaths, searchPaths, lazyPaths, commandArgs, cincludes, clibs
settings resulting in a seq of string values   Source Edit

Procs

proc querySetting(setting: SingleValueSetting): string {...}{.compileTime,
    noSideEffect, raises: [], tags: [].}
Can be used to get a string compile-time option. Example:
const nimcache = querySetting(SingleValueSetting.nimcacheDir)
  Source Edit
proc querySettingSeq(setting: MultipleValueSetting): seq[string] {...}{.compileTime,
    noSideEffect, raises: [], tags: [].}
Can be used to get a multi-string compile-time option. Example:
const nimblePaths = compileSettingSeq(MultipleValueSetting.nimblePaths)
  Source Edit