Mercurial > projects > ldc
comparison dmd/mars.c @ 541:4b7925bc1605
Fixed some osx mistakes.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sun, 24 Aug 2008 17:19:31 +0200 |
parents | 0d2db7efa105 |
children | 1e9ca2889b07 |
comparison
equal
deleted
inserted
replaced
540:9312024a7053 | 541:4b7925bc1605 |
---|---|
312 // setup default target os to be build os | 312 // setup default target os to be build os |
313 #if _WIN32 | 313 #if _WIN32 |
314 global.params.os = OSWindows; | 314 global.params.os = OSWindows; |
315 #elif linux | 315 #elif linux |
316 global.params.os = OSLinux; | 316 global.params.os = OSLinux; |
317 #elif __APPLY__ | 317 #elif __APPLE__ |
318 global.params.os = OSMacOSX; | 318 global.params.os = OSMacOSX; |
319 #else | 319 #else |
320 #error | 320 #error |
321 #endif /* linux */ | 321 #endif /* linux */ |
322 | 322 |
757 global.params.tt_os = "-pc-linux-gnu"; | 757 global.params.tt_os = "-pc-linux-gnu"; |
758 break; | 758 break; |
759 | 759 |
760 case OSMacOSX: | 760 case OSMacOSX: |
761 VersionCondition::addPredefinedGlobalIdent("darwin"); | 761 VersionCondition::addPredefinedGlobalIdent("darwin"); |
762 VersionCondition::addPredefinedGlobalIdent("Posix"); | |
762 global.params.tt_os = "-pc-darwin-gnu"; | 763 global.params.tt_os = "-pc-darwin-gnu"; |
763 | 764 |
764 default: | 765 default: |
765 assert(false && "Target OS not supported"); | 766 assert(false && "Target OS not supported"); |
766 } | 767 } |