From e5c0bd1b97c1cdd01f7616a98a25fe00a1c7e4ad Mon Sep 17 00:00:00 2001 From: yanghaoran Date: Tue, 12 Jan 2021 17:21:04 +0800 Subject: [PATCH] add no-deprecated and no-common for mindspore mode --- ge/common/CMakeLists.txt | 2 ++ ge/ge_runtime/CMakeLists.txt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ge/common/CMakeLists.txt b/ge/common/CMakeLists.txt index aad85654..0172628c 100755 --- a/ge/common/CMakeLists.txt +++ b/ge/common/CMakeLists.txt @@ -187,6 +187,8 @@ target_compile_options(ge_common PRIVATE -fvisibility=hidden -O2 -Werror + -Wno-deprecated-declarations + -fno-common ) target_include_directories(ge_common PRIVATE diff --git a/ge/ge_runtime/CMakeLists.txt b/ge/ge_runtime/CMakeLists.txt index ded8fd39..56b5ab41 100644 --- a/ge/ge_runtime/CMakeLists.txt +++ b/ge/ge_runtime/CMakeLists.txt @@ -23,6 +23,8 @@ add_library(ge_runtime SHARED ${GE_SRC_LIST}) target_compile_options(ge_runtime PRIVATE -Werror -O2 + -Wno-deprecated-declarations + -fno-common ) target_compile_definitions(ge_runtime PRIVATE