Browse Source

!1238 static check 0312

From: @lwx911747
Reviewed-by: @xchu42,@wqtshg
Signed-off-by: @wqtshg
tags/v1.2.0
mindspore-ci-bot Gitee 3 years ago
parent
commit
82b32210e2
2 changed files with 5 additions and 0 deletions
  1. +4
    -0
      ge/CMakeLists.txt
  2. +1
    -0
      ge/executor/CMakeLists.txt

+ 4
- 0
ge/CMakeLists.txt View File

@@ -937,6 +937,10 @@ add_library(atc_stub_ge_compiler SHARED

add_dependencies(atc_stub_ge_compiler ge_stub)

target_compile_options(atc_stub_ge_compiler PRIVATE
-fno-common
)

target_link_libraries(atc_stub_ge_compiler PRIVATE
$<BUILD_INTERFACE:intf_pub>
)


+ 1
- 0
ge/executor/CMakeLists.txt View File

@@ -212,6 +212,7 @@ target_link_libraries(ge_executor PRIVATE
add_library(ge_executor_shared SHARED ${SRC_LIST} ${PROTO_HDRS})

target_compile_options(ge_executor_shared PRIVATE
-fno-common
-Werror
-O2
-Wno-deprecated-declarations


Loading…
Cancel
Save