Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
chen2016013 authored and co63oc committed Apr 22, 2024
1 parent c605907 commit 0f194fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions paddle/fluid/pybind/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,10 @@ if(WITH_PYTHON)
SRCS ${PYBIND_SRCS}
DEPS ${PYBIND_DEPS} ${GLOB_OP_LIB} ${GLOB_OPERATOR_DEPS})

if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU"))
target_compile_options(${SHARD_LIB_NAME} PRIVATE -Wno-maybe-uninitialized)
endif()

# cc_test do not respect deps, whole archive to link symbols that may need by test
if(WITH_TESTING)
#set_target_properties(${SHARD_LIB_NAME} PROPERTIES LINK_FLAGS "-Wl,--whole-archive")
Expand Down

0 comments on commit 0f194fc

Please sign in to comment.