Skip to content

Commit

Permalink
[Xtensa] addPredefinedGlobalIdent for Xtensa
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilsonator committed Aug 24, 2024
1 parent dd0ff1e commit 2a1a979
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions driver/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,9 @@ void registerPredefinedTargetVersions() {
VersionCondition::addPredefinedGlobalIdent("LoongArch64");
registerPredefinedFloatABI("LoongArch_SoftFloat", "LoongArch_HardFloat");
break;
case llvm::Triple::xtensa:
VersionCondition::addPredefinedGlobalIdent("Xtensa");
break;
#endif // LDC_LLVM_VER >= 1600
default:
warning(Loc(), "unknown target CPU architecture: %s",
Expand Down

0 comments on commit 2a1a979

Please sign in to comment.