File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -800,11 +800,12 @@ class alignas(8) GlobalEmptyStringConstexpr {
800800 // Nothing to init, or destroy.
801801 std::string* Init () const { return nullptr ; }
802802
803- // Disable the optimization for MSVC.
803+ // Disable the optimization for MSVC and Xtensa .
804804 // There are some builds where the default constructed string can't be used as
805805 // `constinit` even though the constructor is `constexpr` and can be used
806806 // during constant evaluation.
807- #if !defined(_MSC_VER)
807+ #if !defined(_MSC_VER) && !defined(__XTENSA__)
808+ // Compilation fails on Xtensa: b/467129751
808809 template <typename T = std::string, bool = (T (), true )>
809810 static constexpr std::true_type HasConstexprDefaultConstructor (int ) {
810811 return {};
You can’t perform that action at this time.
0 commit comments