mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 17:43:35 +03:00
NVPTX/NVPTX64 is not available in LLVM 3.1.
This commit is contained in:
parent
e735efc6aa
commit
860ac74415
1 changed files with 2 additions and 0 deletions
|
@ -524,12 +524,14 @@ static void registerPredefinedTargetVersions() {
|
|||
VersionCondition::addPredefinedGlobalIdent("SPARC64");
|
||||
VersionCondition::addPredefinedGlobalIdent("D_HardFloat");
|
||||
break;
|
||||
#if LDC_LLVM_VER >= 302
|
||||
case llvm::Triple::nvptx:
|
||||
VersionCondition::addPredefinedGlobalIdent("NVPTX");
|
||||
break;
|
||||
case llvm::Triple::nvptx64:
|
||||
VersionCondition::addPredefinedGlobalIdent("NVPTX64");
|
||||
break;
|
||||
#endif
|
||||
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