Mercurial > projects > ldc
comparison dmd/mars.c @ 19:788401029ecf trunk
[svn r23] * Updated to DMD 1.021
author | lindquist |
---|---|
date | Thu, 04 Oct 2007 03:42:56 +0200 |
parents | d3ee9efe20e2 |
children | 2841234d2aea |
comparison
equal
deleted
inserted
replaced
18:c05ef76f1c20 | 19:788401029ecf |
---|---|
66 #endif | 66 #endif |
67 | 67 |
68 copyright = "Copyright (c) 1999-2007 by Digital Mars and Tomas Lindquist Olsen"; | 68 copyright = "Copyright (c) 1999-2007 by Digital Mars and Tomas Lindquist Olsen"; |
69 written = "written by Walter Bright and Tomas Lindquist Olsen"; | 69 written = "written by Walter Bright and Tomas Lindquist Olsen"; |
70 llvmdc_version = "0.0.1"; | 70 llvmdc_version = "0.0.1"; |
71 version = "v1.020"; | 71 version = "v1.021"; |
72 global.structalign = 8; | 72 global.structalign = 8; |
73 | 73 |
74 memset(¶ms, 0, sizeof(Param)); | 74 memset(¶ms, 0, sizeof(Param)); |
75 } | 75 } |
76 | 76 |
280 global.params.forceBE = 0; | 280 global.params.forceBE = 0; |
281 global.params.noruntime = 0; | 281 global.params.noruntime = 0; |
282 global.params.optimizeLevel = 2; | 282 global.params.optimizeLevel = 2; |
283 global.params.runtimeImppath = 0; | 283 global.params.runtimeImppath = 0; |
284 | 284 |
285 global.params.defaultlibname = "phobos"; | |
286 global.params.debuglibname = global.params.defaultlibname; | |
287 | |
285 // Predefine version identifiers | 288 // Predefine version identifiers |
286 #if IN_LLVM | 289 #if IN_LLVM |
287 VersionCondition::addPredefinedGlobalIdent("LLVM"); | 290 VersionCondition::addPredefinedGlobalIdent("LLVM"); |
288 #endif | 291 #endif |
289 #if _WIN32 | 292 #if _WIN32 |
472 } | 475 } |
473 else if (p[1] == 'E') | 476 else if (p[1] == 'E') |
474 { | 477 { |
475 global.params.runtimeImppath = p+2; | 478 global.params.runtimeImppath = p+2; |
476 } | 479 } |
477 else if (memcmp(p + 1, "debug", 5) == 0) | 480 else if (memcmp(p + 1, "debug", 5) == 0 && p[6] != 'l') |
478 { | 481 { |
479 // Parse: | 482 // Parse: |
480 // -debug | 483 // -debug |
481 // -debug=number | 484 // -debug=number |
482 // -debug=identifier | 485 // -debug=identifier |
543 global.params.debugy = 1; | 546 global.params.debugy = 1; |
544 else if (p[1] == 'L') | 547 else if (p[1] == 'L') |
545 { | 548 { |
546 global.params.linkswitches->push(p + 2); | 549 global.params.linkswitches->push(p + 2); |
547 } | 550 } |
551 else if (memcmp(p + 1, "defaultlib=", 11) == 0) | |
552 { | |
553 global.params.defaultlibname = p + 1 + 11; | |
554 } | |
555 else if (memcmp(p + 1, "debuglib=", 9) == 0) | |
556 { | |
557 global.params.debuglibname = p + 1 + 9; | |
558 } | |
548 else if (strcmp(p + 1, "run") == 0) | 559 else if (strcmp(p + 1, "run") == 0) |
549 { global.params.run = 1; | 560 { global.params.run = 1; |
550 global.params.runargs_length = ((i >= argcstart) ? argc : argcstart) - i - 1; | 561 global.params.runargs_length = ((i >= argcstart) ? argc : argcstart) - i - 1; |
551 if (global.params.runargs_length) | 562 if (global.params.runargs_length) |
552 { | 563 { |