mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 17:34:43 +00:00
19 lines
681 B
Nim
19 lines
681 B
Nim
|
|
type
|
|
# please make sure we have under 32 options (improves code efficiency!)
|
|
TOption = enum
|
|
optNone, optForceFullMake, optBoehmGC, optRefcGC, optRangeCheck,
|
|
optBoundsCheck, optOverflowCheck, optNilCheck, optAssert, optLineDir,
|
|
optWarns, optHints, optDeadCodeElim, optListCmd, optCompileOnly,
|
|
optSafeCode, # only allow safe code
|
|
optStyleCheck, optOptimizeSpeed, optOptimizeSize, optGenDynLib,
|
|
optGenGuiApp, optStackTrace
|
|
|
|
TOptionset = set[TOption]
|
|
|
|
var
|
|
gOptions: TOptionset = {optRefcGC, optRangeCheck, optBoundsCheck,
|
|
optOverflowCheck, optAssert, optWarns, optHints, optLineDir, optStackTrace}
|
|
compilerArgs: int
|
|
gExitcode: int8
|