This commit is contained in:
parent
5a3456d220
commit
ef121f3b99
1 changed files with 11 additions and 12 deletions
|
|
@ -128,22 +128,21 @@ block tnamedfields:
|
||||||
doAssert $x == "abc", $x
|
doAssert $x == "abc", $x
|
||||||
|
|
||||||
|
|
||||||
block toptions:
|
block tfakeOptions:
|
||||||
type
|
type
|
||||||
# please make sure we have under 32 options (improves code efficiency!)
|
TFakeOption = enum
|
||||||
TOption = enum
|
fakeNone, fakeForceFullMake, fakeBoehmGC, fakeRefcGC, fakeRangeCheck,
|
||||||
optNone, optForceFullMake, optBoehmGC, optRefcGC, optRangeCheck,
|
fakeBoundsCheck, fakeOverflowCheck, fakeNilCheck, fakeAssert, fakeLineDir,
|
||||||
optBoundsCheck, optOverflowCheck, optNilCheck, optAssert, optLineDir,
|
fakeWarns, fakeHints, fakeListCmd, fakeCompileOnly,
|
||||||
optWarns, optHints, optListCmd, optCompileOnly,
|
fakeSafeCode, # only allow safe code
|
||||||
optSafeCode, # only allow safe code
|
fakeStyleCheck, fakeOptimizeSpeed, fakeOptimizeSize, fakeGenDynLib,
|
||||||
optStyleCheck, optOptimizeSpeed, optOptimizeSize, optGenDynLib,
|
fakeGenGuiApp, fakeStackTrace
|
||||||
optGenGuiApp, optStackTrace
|
|
||||||
|
|
||||||
TOptionset = set[TOption]
|
TFakeOptionset = set[TFakeOption]
|
||||||
|
|
||||||
var
|
var
|
||||||
gOptions: TOptionset = {optRefcGC, optRangeCheck, optBoundsCheck,
|
gFakeOptions: TFakeOptionset = {fakeRefcGC, fakeRangeCheck, fakeBoundsCheck,
|
||||||
optOverflowCheck, optAssert, optWarns, optHints, optLineDir, optStackTrace}
|
fakeOverflowCheck, fakeAssert, fakeWarns, fakeHints, fakeLineDir, fakeStackTrace}
|
||||||
compilerArgs: int
|
compilerArgs: int
|
||||||
gExitcode: int8
|
gExitcode: int8
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue