Changeset 999:2b6c2e961f25
- Timestamp:
- 02/26/09 12:28:50
(3 years ago)
- Author:
- Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
- branch:
- default
- Message:
Added some missing version identifiers.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r997 |
r999 |
|
| 134 | 134 | global.params.ddocfiles = new Array(); |
|---|
| 135 | 135 | |
|---|
| | 136 | |
|---|
| 136 | 137 | // Set predefined version identifiers |
|---|
| 137 | 138 | VersionCondition::addPredefinedGlobalIdent("LLVM"); |
|---|
| 138 | 139 | VersionCondition::addPredefinedGlobalIdent("LDC"); |
|---|
| 139 | 140 | VersionCondition::addPredefinedGlobalIdent("all"); |
|---|
| | 141 | #if DMDV2 |
|---|
| | 142 | VersionCondition::addPredefinedGlobalIdent("D_Version2"); |
|---|
| | 143 | #endif |
|---|
| | 144 | |
|---|
| 140 | 145 | |
|---|
| 141 | 146 | // read the inifile |
|---|
| … | … | |
| 443 | 448 | |
|---|
| 444 | 449 | // a generic 64bit version |
|---|
| 445 | | // why isn't this in D to begin with ? |
|---|
| 446 | 450 | if (global.params.is64bit) { |
|---|
| 447 | 451 | VersionCondition::addPredefinedGlobalIdent("LLVM64"); |
|---|
| | 452 | // FIXME: is this always correct? |
|---|
| | 453 | VersionCondition::addPredefinedGlobalIdent("D_LP64"); |
|---|
| 448 | 454 | } |
|---|
| 449 | 455 | |
|---|
| … | … | |
| 508 | 514 | if (global.params.doDocComments) |
|---|
| 509 | 515 | VersionCondition::addPredefinedGlobalIdent("D_Ddoc"); |
|---|
| | 516 | |
|---|
| | 517 | #if DMDV2 |
|---|
| | 518 | // unittests? |
|---|
| | 519 | if (global.params.useUnitTests) |
|---|
| | 520 | VersionCondition::addPredefinedGlobalIdent("unittest"); |
|---|
| | 521 | #endif |
|---|
| 510 | 522 | |
|---|
| 511 | 523 | // Initialization |
|---|