Skip to content

Commit 89114c3

Browse files
committed
Use add library to avoid lto and strip symbols
1 parent ab83001 commit 89114c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/TaichiCore.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,8 @@ if(NOT TI_EMSCRIPTENED)
467467
# Cannot compile Python source code with Android, but TI_EXPORT_CORE should be set and
468468
# Android should only use the isolated library ignoring those source code.
469469
if (NOT ANDROID)
470-
pybind11_add_module(${CORE_WITH_PYBIND_LIBRARY_NAME} ${TAICHI_PYBIND_SOURCE})
470+
#pybind11_add_module(${CORE_WITH_PYBIND_LIBRARY_NAME} ${TAICHI_PYBIND_SOURCE})
471+
add_library(${CORE_WITH_PYBIND_LIBRARY_NAME} SHARED ${TAICHI_PYBIND_SOURCE})
471472
else()
472473
add_library(${CORE_WITH_PYBIND_LIBRARY_NAME} SHARED)
473474
endif ()

0 commit comments

Comments
 (0)