Skip to content

Commit

Permalink
revert phi_static (#49433)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiu authored Dec 30, 2022
1 parent 0111d01 commit 802c579
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions cmake/generic.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ function(create_dummy_static_lib TARGET_NAME)
# the dummy target would be consisted of limit size libraries
set(limit ${merge_LIMIT})
list(LENGTH merge_LIBS libs_len)
message("libs_len ${libs_len}")
foreach(lib ${merge_LIBS})
list(APPEND merge_list ${lib})
list(LENGTH merge_list listlen)
Expand Down
6 changes: 1 addition & 5 deletions paddle/phi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ set(PHI_DEPS
get_property(phi_kernels GLOBAL PROPERTY PHI_KERNELS)
set(PHI_DEPS ${PHI_DEPS} ${phi_kernels})

if(APPLE AND WITH_ARM)
cc_library(phi DEPS ${PHI_DEPS})
else()
create_dummy_static_lib(phi LIBS ${PHI_DEPS} LIMIT 100)
endif()
cc_library(phi DEPS ${PHI_DEPS})

set(phi_extension_header_file
${CMAKE_CURRENT_SOURCE_DIR}/extension.h
Expand Down

0 comments on commit 802c579

Please sign in to comment.