未验证 提交 98beb5af 编写于 作者: engineer1109's avatar engineer1109 提交者: GitHub

export all symbols for phi_function_api (#47208)

export all symbols for phi_function_api on paddle_inference_shared
上级 d5e7d20d
...@@ -126,6 +126,12 @@ if(WITH_ONNXRUNTIME) ...@@ -126,6 +126,12 @@ if(WITH_ONNXRUNTIME)
${CMAKE_CURRENT_SOURCE_DIR}/api/onnxruntime_predictor.cc) ${CMAKE_CURRENT_SOURCE_DIR}/api/onnxruntime_predictor.cc)
endif() endif()
#export all symbols for paddle/phi/api/include/api.h on paddle_inference_shared, only for UNIX
if(UNIX)
set(SHARED_INFERENCE_DEPS ${SHARED_INFERENCE_DEPS}
$<TARGET_OBJECTS:phi_function_api>)
endif()
# Create shared inference library # Create shared inference library
cc_library( cc_library(
paddle_inference_shared SHARED paddle_inference_shared SHARED
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册