Skip to content
Snippets Groups Projects
Commit b7a2c4cf authored by Alex Vakulenko's avatar Alex Vakulenko
Browse files

ledflasher: Disable RTTI

There is no longer a reliance on RTTI in libbrillo, so disable RTTI
in the rest of Brillo codebase.

With RTTI disabled, we rely on __PRETTY_FUNCTION__ macro to infer some
type names. Unfortunately CLANG and GCC use different decorations for
template types with default parameters (such as std::vector and std::map)
which causes problems.

Since most of Brillo code is compiled with clang, use that for code
that relies on brillo::Any.

BUG: 26292405
Change-Id: I922649add010fd68dab90146894494864f44c02e
parent 7a15ed57
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ LOCAL_SHARED_LIBRARIES := \
LOCAL_C_INCLUDES := external/gtest/include
LOCAL_CFLAGS := -Wall -Werror -Wno-sign-promo -Wno-error=unused-parameter
LOCAL_RTTI_FLAG := -frtti
LOCAL_CLANG := true
include $(BUILD_EXECUTABLE)
......
......@@ -35,6 +35,7 @@ LOCAL_SHARED_LIBRARIES := \
libhardware \
libutils \
LOCAL_CLANG := true
LOCAL_C_INCLUDES := external/gtest/include
LOCAL_CFLAGS := \
-Wall \
......@@ -42,7 +43,6 @@ LOCAL_CFLAGS := \
-Wno-sign-promo \
-Wno-missing-field-initializers \
-Wno-error=unused-parameter
LOCAL_RTTI_FLAG := -frtti
include $(BUILD_EXECUTABLE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment