提交 acf28603 编写于 作者: M Megvii Engine Team

fix(cmake): export more sym caused by we change

exception namespace when disable rtti

GitOrigin-RevId: c42f5adffde3c3cfaddda8ff73550b1ff5ab6e63
上级 44bafd3f
...@@ -203,8 +203,8 @@ add_library(megengine) ...@@ -203,8 +203,8 @@ add_library(megengine)
target_link_libraries(megengine PRIVATE ${MGE_CUDA_LIBS}) target_link_libraries(megengine PRIVATE ${MGE_CUDA_LIBS})
target_link_libraries(megengine PUBLIC megbrain megdnn) target_link_libraries(megengine PUBLIC megbrain megdnn)
if (UNIX AND NOT APPLE) if (UNIX AND NOT APPLE)
# TODO: Use target_link_options after upgrading to CMake 3.13
target_link_options(megengine PRIVATE -Wl,--no-undefined -Wl,--version-script=${_VER_FILE}) target_link_options(megengine PRIVATE -Wl,--no-undefined -Wl,--version-script=${_VER_FILE})
set_target_properties(megengine PROPERTIES LINK_DEPENDS ${_VER_FILE})
endif() endif()
set_target_properties(megengine PROPERTIES CXX_VISIBILITY_PRESET default) set_target_properties(megengine PROPERTIES CXX_VISIBILITY_PRESET default)
set_target_properties(megengine PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE) set_target_properties(megengine PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
......
...@@ -10,6 +10,7 @@ global: ...@@ -10,6 +10,7 @@ global:
*megdnn::*; *megdnn::*;
*megcore::*; *megcore::*;
megcore*; megcore*;
base_exceptions*;
}; };
megcore*; megcore*;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册