Skip to content

Commit

Permalink
fix compile bugs on aarch64 platform (PaddlePaddle#57931)
Browse files Browse the repository at this point in the history
  • Loading branch information
USTCKAY authored Oct 9, 2023
1 parent e75b6eb commit 3977564
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cmake/external/brpc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# limitations under the License.

include(ExternalProject)
set(OPENSSL_USE_STATIC_LIBS ON)
if(NOT WITH_ARM)
set(OPENSSL_USE_STATIC_LIBS ON)
endif()
find_package(OpenSSL REQUIRED)

message(STATUS "ssl:" ${OPENSSL_SSL_LIBRARY})
Expand Down
4 changes: 3 additions & 1 deletion paddle/fluid/pybind/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,9 @@ if(WITH_PYTHON)
eager_legacy_op_function_generator.cc)
set(GENERATOR_DEPS ${PYBIND_DEPS})
list(REMOVE_DUPLICATES GENERATOR_DEPS)
list(REMOVE_ITEM GENERATOR_DEPS python)
if(NOT WITH_ARM)
list(REMOVE_ITEM GENERATOR_DEPS python)
endif()
target_link_libraries(eager_legacy_op_function_generator ${GENERATOR_DEPS})
if(NOT WIN32)
add_executable(kernel_signature_generator kernel_signature_generator.cc)
Expand Down

0 comments on commit 3977564

Please sign in to comment.