Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

Fix 'Bad cast from' exception on ChromeOS (#28696)

Mateusz Tabaka3d24df52546f
diff --git a/src/core/src/any.cpp b/src/core/src/any.cpp
index 4dd9ce40af5..54c6b4f9d86 100644
--- a/src/core/src/any.cpp
+++ b/src/core/src/any.cpp
@@ -22,7 +22,7 @@ namespace ov {
bool util::equal(std::type_index lhs, std::type_index rhs) {
auto result = lhs == rhs;
-#if (defined(__ANDROID__) || defined(__APPLE__)) && defined(__clang__)
+#if (defined(__ANDROID__) || defined(__APPLE__) || defined(__CHROMIUMOS__)) && defined(__clang__)
if (!result) {
result = std::strcmp(lhs.name(), rhs.name()) == 0;
}