From ca79f2ab032e7c7eecccc7b89d796a405197164c Mon Sep 17 00:00:00 2001 From: huzhiqiang <912790387@qq.com> Date: Sat, 23 May 2020 14:23:28 +0800 Subject: [PATCH] [BUG FIX] [Mac whl] Fix the issue that python installer can not work properly (#3685) --- lite/api/python/pybind/CMakeLists.txt | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lite/api/python/pybind/CMakeLists.txt b/lite/api/python/pybind/CMakeLists.txt index f9343d3347..fe4cdb5a73 100644 --- a/lite/api/python/pybind/CMakeLists.txt +++ b/lite/api/python/pybind/CMakeLists.txt @@ -7,20 +7,8 @@ if(WIN32) lite_cc_library(lite_pybind SHARED SRCS pybind.cc DEPS ${PYBIND_DEPS}) get_property (os_dependency_modules GLOBAL PROPERTY OS_DEPENDENCY_MODULES) target_link_libraries(lite_pybind ${os_dependency_modules}) -elseif(APPLE) - lite_cc_library(lite_pybind SHARED SRCS pybind.cc DEPS ${PYBIND_DEPS}) - set(LINK_MAP_FILE "${PADDLE_SOURCE_DIR}/lite/core/exported_symbols.lds") - set(LINK_FLAGS "-Wl,-exported_symbols_list, ${LINK_MAP_FILE}") - add_custom_command(OUTPUT ${LINK_MAP_FILE} COMMAND ...) - set_target_properties(lite_pybind PROPERTIES LINK_FLAGS ${LINK_FLAGS}) - add_dependencies(lite_pybind custom_linker_map) else() lite_cc_library(lite_pybind SHARED SRCS pybind.cc DEPS ${PYBIND_DEPS}) - set(LINK_MAP_FILE "${PADDLE_SOURCE_DIR}/lite/core/lite.map") - set(LINK_FLAGS "-Wl,--version-script ${LINK_MAP_FILE}") - add_custom_command(OUTPUT ${LINK_MAP_FILE} COMMAND ...) - set_target_properties(lite_pybind PROPERTIES LINK_FLAGS ${LINK_FLAGS}) - add_dependencies(lite_pybind custom_linker_map) endif(WIN32) if (LITE_ON_TINY_PUBLISH) -- GitLab