Browse Source

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

exception namespace when disable rtti

GitOrigin-RevId: c42f5adffd
tags/v1.3.1
Megvii Engine Team 4 years ago
parent
commit
acf2860341
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      src/CMakeLists.txt
  2. +1
    -0
      src/version.ld

+ 1
- 1
src/CMakeLists.txt View File

@@ -203,8 +203,8 @@ add_library(megengine)
target_link_libraries(megengine PRIVATE ${MGE_CUDA_LIBS})
target_link_libraries(megengine PUBLIC megbrain megdnn)
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})
set_target_properties(megengine PROPERTIES LINK_DEPENDS ${_VER_FILE})
endif()
set_target_properties(megengine PROPERTIES CXX_VISIBILITY_PRESET default)
set_target_properties(megengine PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE)


+ 1
- 0
src/version.ld View File

@@ -10,6 +10,7 @@ global:
*megdnn::*;
*megcore::*;
megcore*;
base_exceptions*;
};
megcore*;



Loading…
Cancel
Save