mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 17:43:14 +01:00
DMD defines Win32 and Win64 mutually exclusive. Now LDC does the same.
This commit is contained in:
@@ -629,20 +629,14 @@ int main(int argc, char** argv)
|
||||
{
|
||||
case llvm::Triple::Win32:
|
||||
VersionCondition::addPredefinedGlobalIdent("Windows");
|
||||
VersionCondition::addPredefinedGlobalIdent("Win32");
|
||||
if (global.params.is64bit) {
|
||||
VersionCondition::addPredefinedGlobalIdent("Win64");
|
||||
}
|
||||
VersionCondition::addPredefinedGlobalIdent(global.params.is64bit ? "Win64" : "Win32");
|
||||
break;
|
||||
case llvm::Triple::MinGW32:
|
||||
global.params.os = OSWindows; // FIXME: Check source for uses of MinGW32
|
||||
VersionCondition::addPredefinedGlobalIdent("Windows");
|
||||
VersionCondition::addPredefinedGlobalIdent("Win32");
|
||||
VersionCondition::addPredefinedGlobalIdent(global.params.is64bit ? "Win64" : "Win32");
|
||||
VersionCondition::addPredefinedGlobalIdent("mingw32");
|
||||
VersionCondition::addPredefinedGlobalIdent("MinGW");
|
||||
if (global.params.is64bit) {
|
||||
VersionCondition::addPredefinedGlobalIdent("Win64");
|
||||
}
|
||||
break;
|
||||
case llvm::Triple::Cygwin:
|
||||
error("CygWin is not yet supported");
|
||||
|
||||
Reference in New Issue
Block a user