Skip to content

Commit e9ba79c

Browse files
committed
Update
1 parent e309bcd commit e9ba79c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

paddle/fluid/inference/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ cc_library(paddle_fluid DEPS ${fluid_modules})
1111
# Create shared library
1212
cc_library(paddle_fluid_shared SHARED
1313
SRCS io.cc
14-
DEPS ARCHIVE_START ${GLOB_OP_LIB} ${FLUID_CORE_MODULES} ARCHIVE_END)
14+
DEPS ${GLOB_OP_LIB} ${FLUID_CORE_MODULES})
1515
set_target_properties(paddle_fluid_shared PROPERTIES OUTPUT_NAME paddle_fluid)
16-
if(NOT APPLE)
17-
# TODO(liuyiqun): Temporarily disable the link flag because it is not support on Mac.
18-
set(LINK_FLAGS "-Wl,--version-script ${CMAKE_CURRENT_SOURCE_DIR}/paddle_fluid.map")
19-
set_target_properties(paddle_fluid_shared PROPERTIES LINK_FLAGS "${LINK_FLAGS}")
20-
endif()
16+
# if(NOT APPLE)
17+
# # TODO(liuyiqun): Temporarily disable the link flag because it is not support on Mac.
18+
# set(LINK_FLAGS "-Wl,--version-script ${CMAKE_CURRENT_SOURCE_DIR}/paddle_fluid.map")
19+
# set_target_properties(paddle_fluid_shared PROPERTIES LINK_FLAGS "${LINK_FLAGS}")
20+
# endif()
2121

2222
if(WITH_TESTING)
2323
add_subdirectory(tests/book)

paddle/fluid/inference/tests/book/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function(inference_test TARGET_NAME)
1717
string(REGEX REPLACE "^_$" "" arg "${arg}")
1818
cc_test(test_inference_${TARGET_NAME}${arg}
1919
SRCS test_inference_${TARGET_NAME}.cc
20-
DEPS ARCHIVE_START paddle_fluid ARCHIVE_END
20+
DEPS paddle_fluid
2121
ARGS --dirname=${PYTHON_TESTS_DIR}/book/${TARGET_NAME}${arg}.inference.model)
2222
set_tests_properties(test_inference_${TARGET_NAME}${arg}
2323
PROPERTIES DEPENDS test_${TARGET_NAME})

0 commit comments

Comments
 (0)