From 98beb5af0f8d4e073583827bc32615e69d9c45d4 Mon Sep 17 00:00:00 2001 From: engineer1109 <1292846099@qq.com> Date: Tue, 25 Oct 2022 17:27:15 +0800 Subject: [PATCH] export all symbols for phi_function_api (#47208) export all symbols for phi_function_api on paddle_inference_shared --- paddle/fluid/inference/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/paddle/fluid/inference/CMakeLists.txt b/paddle/fluid/inference/CMakeLists.txt index e56326eb981..728d3cf5377 100644 --- a/paddle/fluid/inference/CMakeLists.txt +++ b/paddle/fluid/inference/CMakeLists.txt @@ -126,6 +126,12 @@ if(WITH_ONNXRUNTIME) ${CMAKE_CURRENT_SOURCE_DIR}/api/onnxruntime_predictor.cc) 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} + $) +endif() + # Create shared inference library cc_library( paddle_inference_shared SHARED -- GitLab