WINDOWS_EXPORT_ALL_SYMBOLS causing link failure on 3.9.0-rc5
Not sure how to make a lighter test case, but the errors generated do not occur with 3.8.2
git clone https://github.com/llvm-mirror/llvm.git
cd llvm/tools
git clone https://github.com/root-project/cling.git
git clone https://github.com/llvm-mirror/clang.git
cd ../../; mkdir build; cd build;
cmake-3.9.0-rc5 ../llvm -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=host -DPYTHON_EXECUTABLE="G:\Program Files\Python27\python.exe" -DLLVM_LIT_TOOLS_DIR="G:\Program Files (x86)\GnuWin32\bin" -G Ninja
ninja cling
Cause the following, which does not happen with with 3.8.2: The error also occurs when using the Visual Studio generator.
exports.def : warning LNK4022: cannot find unique match for symbol '_CT??_R0?AVexception'
exports.def : warning LNK4002: _CT??_R0?AVexception@std@@@824 defined in tools\cling\lib\Interpreter\CMakeFiles\obj.clingInterpreter.dir\Exception.cpp.obj
exports.def : warning LNK4002: _CT??_R0?AVexception@std@@@8??0exception@std@@QEAA@AEBV01@@Z24 defined in f:\binaries\Intermediate\vctools\msvcrt.nativeproj_607447030\objd\amd64\throw_bad_alloc.obj
exports.def : warning LNK4002: _CT??_R0?AVexception@stdext@@@816 defined in lib\Support\CMakeFiles\LLVMSupport.dir\ThreadPool.cpp.obj
exports.def : error LNK2001: unresolved external symbol _CT??_R0?AVexception