@@ -78,6 +78,7 @@ target_compile_options(ge_common PRIVATE | |||||
-fvisibility=hidden | -fvisibility=hidden | ||||
-O2 | -O2 | ||||
-Werror | -Werror | ||||
-Wno-deprecated-declarations | |||||
) | ) | ||||
target_include_directories(ge_common PRIVATE | target_include_directories(ge_common PRIVATE | ||||
@@ -132,6 +133,7 @@ target_compile_options(ge_common_static PRIVATE | |||||
-fvisibility=hidden | -fvisibility=hidden | ||||
-O2 | -O2 | ||||
-Werror | -Werror | ||||
-Wno-deprecated-declarations | |||||
) | ) | ||||
target_include_directories(ge_common_static PRIVATE | target_include_directories(ge_common_static PRIVATE | ||||
@@ -82,8 +82,9 @@ include $(CLEAR_VARS) | |||||
LOCAL_MODULE := libge_common | LOCAL_MODULE := libge_common | ||||
LOCAL_CFLAGS += -Werror -DFMK_SUPPORT_DUMP | |||||
LOCAL_CFLAGS += -Werror -DFMK_SUPPORT_DUMP -Wno-deprecated-declarations | |||||
LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 -O2 -Dgoogle=ascend_private | LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 -O2 -Dgoogle=ascend_private | ||||
ifeq ($(DEBUG), 1) | ifeq ($(DEBUG), 1) | ||||
LOCAL_CFLAGS += -g -O0 | LOCAL_CFLAGS += -g -O0 | ||||
else | else | ||||
@@ -123,8 +124,9 @@ include $(CLEAR_VARS) | |||||
LOCAL_MODULE := libge_common | LOCAL_MODULE := libge_common | ||||
LOCAL_CFLAGS += -Werror -DFMK_SUPPORT_DUMP | |||||
LOCAL_CFLAGS += -Werror -DFMK_SUPPORT_DUMP -Wno-deprecated-declarations | |||||
LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 -O2 -Dgoogle=ascend_private | LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 -O2 -Dgoogle=ascend_private | ||||
ifeq ($(DEBUG), 1) | ifeq ($(DEBUG), 1) | ||||
LOCAL_CFLAGS += -g -O0 | LOCAL_CFLAGS += -g -O0 | ||||
else | else | ||||
@@ -169,8 +171,9 @@ include $(CLEAR_VARS) | |||||
LOCAL_MODULE := libge_common | LOCAL_MODULE := libge_common | ||||
LOCAL_CFLAGS += -Werror -DFMK_SUPPORT_DUMP | |||||
LOCAL_CFLAGS += -Werror -DFMK_SUPPORT_DUMP -Wno-deprecated-declarations | |||||
LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 -O2 -Dgoogle=ascend_private | LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 -O2 -Dgoogle=ascend_private | ||||
ifeq ($(DEBUG), 1) | ifeq ($(DEBUG), 1) | ||||
LOCAL_CFLAGS += -g -O0 | LOCAL_CFLAGS += -g -O0 | ||||
endif | endif | ||||
@@ -211,8 +214,9 @@ include $(CLEAR_VARS) | |||||
LOCAL_MODULE := libge_common | LOCAL_MODULE := libge_common | ||||
LOCAL_CFLAGS += -Werror -DFMK_SUPPORT_DUMP | |||||
LOCAL_CFLAGS += -Werror -DFMK_SUPPORT_DUMP -Wno-deprecated-declarations | |||||
LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 -O2 -Dgoogle=ascend_private | LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 -O2 -Dgoogle=ascend_private | ||||
ifeq ($(DEBUG), 1) | ifeq ($(DEBUG), 1) | ||||
LOCAL_CFLAGS += -g -O0 | LOCAL_CFLAGS += -g -O0 | ||||
endif | endif | ||||
@@ -81,6 +81,7 @@ add_library(ge_executor STATIC ${SRC_LIST} ${PROTO_HDRS}) | |||||
target_compile_options(ge_executor PRIVATE | target_compile_options(ge_executor PRIVATE | ||||
-Werror | -Werror | ||||
-O2 | -O2 | ||||
-Wno-deprecated-declarations | |||||
) | ) | ||||
target_compile_definitions(ge_executor PRIVATE | target_compile_definitions(ge_executor PRIVATE | ||||
@@ -105,7 +105,7 @@ local_ge_executor_ldflags := -lrt -ldl \ | |||||
include $(CLEAR_VARS) | include $(CLEAR_VARS) | ||||
LOCAL_MODULE := libge_executor | LOCAL_MODULE := libge_executor | ||||
LOCAL_CFLAGS += -Werror | |||||
LOCAL_CFLAGS += -Werror -Wno-deprecated-declarations | |||||
LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 -O2 -DDAVINCI_SUPPORT_PROFILING -Dgoogle=ascend_private | LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 -O2 -DDAVINCI_SUPPORT_PROFILING -Dgoogle=ascend_private | ||||
LOCAL_SRC_FILES := $(local_ge_executor_src_files) | LOCAL_SRC_FILES := $(local_ge_executor_src_files) | ||||
@@ -131,7 +131,7 @@ include $(BUILD_SHARED_LIBRARY) | |||||
include $(CLEAR_VARS) | include $(CLEAR_VARS) | ||||
LOCAL_MODULE := libge_executor | LOCAL_MODULE := libge_executor | ||||
LOCAL_CFLAGS += -Werror | |||||
LOCAL_CFLAGS += -Werror -Wno-deprecated-declarations | |||||
LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 -DDAVINCI_SUPPORT_PROFILING -Dgoogle=ascend_private | LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 -DDAVINCI_SUPPORT_PROFILING -Dgoogle=ascend_private | ||||
ifeq ($(DEBUG), 1) | ifeq ($(DEBUG), 1) | ||||
LOCAL_CFLAGS += -g -O0 | LOCAL_CFLAGS += -g -O0 | ||||
@@ -167,7 +167,7 @@ include $(BUILD_HOST_SHARED_LIBRARY) | |||||
include $(CLEAR_VARS) | include $(CLEAR_VARS) | ||||
LOCAL_MODULE := libge_executor | LOCAL_MODULE := libge_executor | ||||
LOCAL_CFLAGS += -Werror | |||||
LOCAL_CFLAGS += -Werror -Wno-deprecated-declarations | |||||
LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 -DDAVINCI_SUPPORT_PROFILING -Dgoogle=ascend_private | LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 -DDAVINCI_SUPPORT_PROFILING -Dgoogle=ascend_private | ||||
ifeq ($(DEBUG), 1) | ifeq ($(DEBUG), 1) | ||||
LOCAL_CFLAGS += -g -O0 | LOCAL_CFLAGS += -g -O0 | ||||
@@ -200,7 +200,7 @@ include $(BUILD_HOST_STATIC_LIBRARY) | |||||
include $(CLEAR_VARS) | include $(CLEAR_VARS) | ||||
LOCAL_MODULE := libge_executor | LOCAL_MODULE := libge_executor | ||||
LOCAL_CFLAGS += -Werror | |||||
LOCAL_CFLAGS += -Werror -Wno-deprecated-declarations | |||||
LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 -DDAVINCI_SUPPORT_PROFILING -Dgoogle=ascend_private | LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 -DDAVINCI_SUPPORT_PROFILING -Dgoogle=ascend_private | ||||
ifeq ($(DEBUG), 1) | ifeq ($(DEBUG), 1) | ||||
LOCAL_CFLAGS += -g -O0 | LOCAL_CFLAGS += -g -O0 | ||||
@@ -20,6 +20,7 @@ add_executable(atc ${SRC_LIST} ${PROTO_HDRS}) | |||||
target_compile_options(atc PRIVATE | target_compile_options(atc PRIVATE | ||||
-Werror | -Werror | ||||
-O2 | -O2 | ||||
-Wno-deprecated-declarations | |||||
) | ) | ||||
target_compile_definitions(atc PRIVATE | target_compile_definitions(atc PRIVATE | ||||
@@ -5,7 +5,7 @@ include $(CLEAR_VARS) | |||||
LOCAL_MODULE := atc | LOCAL_MODULE := atc | ||||
LOCAL_CFLAGS += -Werror | |||||
LOCAL_CFLAGS += -Werror -Wno-deprecated-declarations | |||||
LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 -DCOMPILE_OMG_PACKAGE -O2 -Dgoogle=ascend_private | LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 -DCOMPILE_OMG_PACKAGE -O2 -Dgoogle=ascend_private | ||||
LOCAL_SRC_FILES := \ | LOCAL_SRC_FILES := \ | ||||