!1238 static check 0312

From: @lwx911747
Reviewed-by: @xchu42,@wqtshg
Signed-off-by: @wqtshg
pull/1238/MERGE
mindspore-ci-bot 4 years ago committed by Gitee
commit 82b32210e2

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

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