mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 17:43:35 +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
|
||||
"LLVM", "LDC", "LLVM64",
|
||||
"PPC", "PPC64",
|
||||
"darwin","solaris","freebsd"
|
||||
"darwin","solaris","freebsd",
|
||||
"NVPTX", "NVPTX64"
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
@ -526,6 +526,12 @@ static void registerPredefinedTargetVersions() {
|
|||
VersionCondition::addPredefinedGlobalIdent("SPARC64");
|
||||
VersionCondition::addPredefinedGlobalIdent("D_HardFloat");
|
||||
break;
|
||||
case llvm::Triple::nvptx:
|
||||
VersionCondition::addPredefinedGlobalIdent("NVPTX");
|
||||
break;
|
||||
case llvm::Triple::nvptx64:
|
||||
VersionCondition::addPredefinedGlobalIdent("NVPTX64");
|
||||
break;
|
||||
default:
|
||||
error("invalid cpu architecture specified: %s", global.params.targetTriple.getArchName().str().c_str());
|
||||
fatal();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue