From 0d05e64618f4d130ec9c32df4b8fda63d5cfecf7 Mon Sep 17 00:00:00 2001 From: pangyoki Date: Wed, 24 Aug 2022 19:39:56 +0800 Subject: [PATCH] fix arm compile problem in phi/CmakeLists.txt (#42325) * fix arm compile problem * fix format * fix ci error --- paddle/phi/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/paddle/phi/CMakeLists.txt b/paddle/phi/CMakeLists.txt index fdcd511faef..d4a7672583e 100644 --- a/paddle/phi/CMakeLists.txt +++ b/paddle/phi/CMakeLists.txt @@ -46,7 +46,11 @@ set(PHI_DEPS get_property(phi_kernels GLOBAL PROPERTY PHI_KERNELS) set(PHI_DEPS ${PHI_DEPS} ${phi_kernels}) -create_dummy_static_lib(phi LIBS ${PHI_DEPS} LIMIT 100) +if(APPLE AND WITH_ARM) + cc_library(phi DEPS ${PHI_DEPS}) +else() + create_dummy_static_lib(phi LIBS ${PHI_DEPS} LIMIT 100) +endif() set(phi_extension_header_file ${CMAKE_CURRENT_SOURCE_DIR}/extension.h -- GitLab