toptions.nim 681 B

12345678910111213141516171819
  1. type
  2. # please make sure we have under 32 options (improves code efficiency!)
  3. TOption = enum
  4. optNone, optForceFullMake, optBoehmGC, optRefcGC, optRangeCheck,
  5. optBoundsCheck, optOverflowCheck, optNilCheck, optAssert, optLineDir,
  6. optWarns, optHints, optDeadCodeElim, optListCmd, optCompileOnly,
  7. optSafeCode, # only allow safe code
  8. optStyleCheck, optOptimizeSpeed, optOptimizeSize, optGenDynLib,
  9. optGenGuiApp, optStackTrace
  10. TOptionset = set[TOption]
  11. var
  12. gOptions: TOptionset = {optRefcGC, optRangeCheck, optBoundsCheck,
  13. optOverflowCheck, optAssert, optWarns, optHints, optLineDir, optStackTrace}
  14. compilerArgs: int
  15. gExitcode: int8