Quick fix for -DBUILD_SHARED_LIBS=on build after rL341502
authorFangrui Song <maskray@google.com>
Thu, 6 Sep 2018 19:51:20 +0000 (19:51 +0000)
committerFangrui Song <maskray@google.com>
Thu, 6 Sep 2018 19:51:20 +0000 (19:51 +0000)
commit95dd7a25bab98a93bd58c47e0b6d6f91791bf987
tree4e23fba2baa8eee95c38a351563f6969fdac06c2
parentbf985258b9af0de0c95370c696fbdbc03d0713cf
Quick fix for -DBUILD_SHARED_LIBS=on build after rL341502

libLLVMTestingSupport.so references a symbol in utils/unittest/UnitTestMain/TestMain.cpp (a layering issue) and will cause a link error because of -Wl,-z,defs (cmake/modules/HandleLLVMOptions.cmake)

Waiting zturner for a better fix.

llvm-svn: 341580
llvm/include/llvm/Testing/Support/SupportHelpers.h
llvm/lib/Testing/Support/SupportHelpers.cpp
llvm/unittests/DebugInfo/PDB/NativeSymbolReuseTest.cpp