mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 00:55:49 +03:00
Add predefined version for S390.
This commit is contained in:
parent
819cb978b8
commit
a449635d4c
2 changed files with 10 additions and 0 deletions
|
@ -671,6 +671,13 @@ static void registerPredefinedTargetVersions() {
|
|||
VersionCondition::addPredefinedGlobalIdent("NVPTX64");
|
||||
VersionCondition::addPredefinedGlobalIdent("D_HardFloat");
|
||||
break;
|
||||
#endif
|
||||
#if LDC_LLVM_VER >= 303
|
||||
case llvm::Triple::systemz:
|
||||
VersionCondition::addPredefinedGlobalIdent("SystemZ");
|
||||
VersionCondition::addPredefinedGlobalIdent("S390X"); // For backwards compatibility.
|
||||
VersionCondition::addPredefinedGlobalIdent("D_HardFloat");
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
error(Loc(), "invalid cpu architecture specified: %s", global.params.targetTriple.getArchName().str().c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue