Browse Source

static check 0312

tags/v1.2.0
lwx911747 3 years ago
parent
commit
a63df26ead
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) 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 target_link_libraries(atc_stub_ge_compiler PRIVATE
$<BUILD_INTERFACE:intf_pub> $<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}) add_library(ge_executor_shared SHARED ${SRC_LIST} ${PROTO_HDRS})


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


Loading…
Cancel
Save