Browse Source

add no-deprecated and no-common for mindspore mode

tags/v1.2.0
yanghaoran 3 years ago
parent
commit
e5c0bd1b97
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      ge/common/CMakeLists.txt
  2. +2
    -0
      ge/ge_runtime/CMakeLists.txt

+ 2
- 0
ge/common/CMakeLists.txt View File

@@ -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


+ 2
- 0
ge/ge_runtime/CMakeLists.txt View File

@@ -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


Loading…
Cancel
Save