diff --git a/esphome/components/esp32/operator_new.cpp b/esphome/components/esp32/operator_new.cpp index 331b90e5040..7ea168b1ad0 100644 --- a/esphome/components/esp32/operator_new.cpp +++ b/esphome/components/esp32/operator_new.cpp @@ -12,8 +12,18 @@ #include #include +#include #include "esp_system.h" +#ifdef __cpp_exceptions +#error "CONFIG_COMPILER_CXX_EXCEPTIONS no longer matches -fexceptions" +#endif + +#ifndef CLANG_TIDY // clang-tidy parses Xtensa with a 64 bit host target +// --undefined=_Znwj in __init__.py relies on this mangling +static_assert(std::is_same_v, "update --undefined=_Znwj"); +#endif + namespace esphome::esp32 {} // namespace esphome::esp32 namespace {