We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d95b447 commit a59c60eCopy full SHA for a59c60e
clang/lib/Basic/Targets/Xtensa.h
@@ -93,7 +93,12 @@ class LLVM_LIBRARY_VISIBILITY XtensaTargetInfo : public TargetInfo {
93
}
94
95
bool isValidCPUName(StringRef Name) const override {
96
- return llvm::StringSwitch<bool>(Name).Case("generic", true).Default(false);
+ return llvm::StringSwitch<bool>(Name)
97
+ .Case("esp32", true)
98
+ .Case("esp8266", true)
99
+ .Case("esp32-s2", true)
100
+ .Case("generic", true)
101
+ .Default(false);
102
103
104
bool setCPU(const std::string &Name) override {
0 commit comments