Index: unittests/Support/DynamicLibrary/CMakeLists.txt =================================================================== --- unittests/Support/DynamicLibrary/CMakeLists.txt +++ unittests/Support/DynamicLibrary/CMakeLists.txt @@ -1,5 +1,6 @@ set(LLVM_LINK_COMPONENTS Support) +set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/DynamicLibraryTests.exports) add_llvm_unittest(DynamicLibraryTests DynamicLibraryTest.cpp) export_executable_symbols(DynamicLibraryTests) Index: unittests/Support/DynamicLibrary/DynamicLibraryTests.exports =================================================================== --- /dev/null +++ unittests/Support/DynamicLibrary/DynamicLibraryTests.exports @@ -0,0 +1 @@ +TestA