summary refs log tree commit diff stats
path: root/tests/accept/compile/toptions.nim
blob: 95bb5cfbc3d2ff2d74927b31245e7721cfe97933 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Converted by Pas2mor v1.54
# Used command line arguments:
# -m -q -o bootstrap\options.mor options.pas
#

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