Mercurial > projects > ddmd
comparison main.d @ 130:60bb0fe4563e
dmdfe 2.037 first main iteration
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Thu, 09 Sep 2010 22:51:44 +0100 |
parents | e28b18c23469 |
children | 4092a614a9f3 8bf07a566fdf |
comparison
equal
deleted
inserted
replaced
129:010eb8f0e18d | 130:60bb0fe4563e |
---|---|
212 Array libmodules = new Array(); | 212 Array libmodules = new Array(); |
213 Module m; | 213 Module m; |
214 int status = ExitCode.EXIT_SUCCESS; | 214 int status = ExitCode.EXIT_SUCCESS; |
215 int argcstart = args.length; | 215 int argcstart = args.length; |
216 int setdebuglib = 0; | 216 int setdebuglib = 0; |
217 byte noboundscheck = 0; | |
217 | 218 |
218 global = new Global(); | 219 global = new Global(); |
219 | 220 |
220 /// if (response_expand(&argc,&argv)) // expand response files | 221 /// if (response_expand(&argc,&argv)) // expand response files |
221 /// error("can't open response file"); | 222 /// error("can't open response file"); |
227 global.params.link = 1; | 228 global.params.link = 1; |
228 global.params.useAssert = 1; | 229 global.params.useAssert = 1; |
229 global.params.useInvariants = 1; | 230 global.params.useInvariants = 1; |
230 global.params.useIn = 1; | 231 global.params.useIn = 1; |
231 global.params.useOut = 1; | 232 global.params.useOut = 1; |
232 global.params.useArrayBounds = 1; | 233 global.params.useArrayBounds = 2; // default to all functions |
233 global.params.useSwitchError = 1; | 234 global.params.useSwitchError = 1; |
234 global.params.useInline = 0; | 235 global.params.useInline = 0; |
235 global.params.obj = 1; | 236 global.params.obj = 1; |
236 global.params.Dversion = 2; | 237 global.params.Dversion = 2; |
237 global.params.quiet = 1; | 238 global.params.quiet = 1; |
475 else if (arg == "quiet") | 476 else if (arg == "quiet") |
476 global.params.quiet = 1; | 477 global.params.quiet = 1; |
477 else if (arg == "release") | 478 else if (arg == "release") |
478 global.params.release = 1; | 479 global.params.release = 1; |
479 ///version (DMDV2) { | 480 ///version (DMDV2) { |
480 else if (arg == "safe") | 481 else if (arg == "noboundscheck") |
481 global.params.safe = 1; | 482 noboundscheck = 1; |
482 ///} | 483 ///} |
483 else if (arg == "unittest") | 484 else if (arg == "unittest") |
484 global.params.useUnitTests = 1; | 485 global.params.useUnitTests = 1; |
485 else if (p[1] == 'I') | 486 else if (p[1] == 'I') |
486 { | 487 { |
667 version (TARGET_OSX) { | 668 version (TARGET_OSX) { |
668 global.params.pic = 1; | 669 global.params.pic = 1; |
669 } | 670 } |
670 | 671 |
671 if (global.params.release) | 672 if (global.params.release) |
672 { global.params.useInvariants = 0; | 673 { |
674 global.params.useInvariants = 0; | |
673 global.params.useIn = 0; | 675 global.params.useIn = 0; |
674 global.params.useOut = 0; | 676 global.params.useOut = 0; |
675 global.params.useAssert = 0; | 677 global.params.useAssert = 0; |
676 global.params.useArrayBounds = 0; | 678 global.params.useArrayBounds = 0; |
677 global.params.useSwitchError = 0; | 679 global.params.useSwitchError = 0; |
678 } | 680 } |
679 | 681 |
682 if (noboundscheck) | |
683 global.params.useArrayBounds = 0; | |
684 | |
680 if (global.params.run) | 685 if (global.params.run) |
681 global.params.quiet = 1; | 686 global.params.quiet = 1; |
682 | 687 |
683 if (global.params.useUnitTests) | 688 if (global.params.useUnitTests) |
684 global.params.useAssert = 1; | 689 global.params.useAssert = 1; |