mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 02:45:25 +03:00
Merge branch 'master' into merge-2.064
This commit is contained in:
commit
7f44320dd0
2 changed files with 8 additions and 2 deletions
|
@ -236,8 +236,8 @@ bool VersionCondition::isPredefined(const char *ident)
|
||||||
|
|
||||||
#if IN_LLVM
|
#if IN_LLVM
|
||||||
"LLVM", "LDC", "LLVM64",
|
"LLVM", "LDC", "LLVM64",
|
||||||
"PPC", "PPC64",
|
"darwin","solaris","freebsd",
|
||||||
"darwin","solaris","freebsd"
|
"NVPTX", "NVPTX64"
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -526,6 +526,12 @@ static void registerPredefinedTargetVersions() {
|
||||||
VersionCondition::addPredefinedGlobalIdent("SPARC64");
|
VersionCondition::addPredefinedGlobalIdent("SPARC64");
|
||||||
VersionCondition::addPredefinedGlobalIdent("D_HardFloat");
|
VersionCondition::addPredefinedGlobalIdent("D_HardFloat");
|
||||||
break;
|
break;
|
||||||
|
case llvm::Triple::nvptx:
|
||||||
|
VersionCondition::addPredefinedGlobalIdent("NVPTX");
|
||||||
|
break;
|
||||||
|
case llvm::Triple::nvptx64:
|
||||||
|
VersionCondition::addPredefinedGlobalIdent("NVPTX64");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
error("invalid cpu architecture specified: %s", global.params.targetTriple.getArchName().str().c_str());
|
error("invalid cpu architecture specified: %s", global.params.targetTriple.getArchName().str().c_str());
|
||||||
fatal();
|
fatal();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue