Fixed the build of Clang's unit tests on MinGW. Also removed some
authorOscar Fuentes <ofv@wanadoo.es>
Tue, 29 Mar 2011 20:51:08 +0000 (20:51 +0000)
committerOscar Fuentes <ofv@wanadoo.es>
Tue, 29 Mar 2011 20:51:08 +0000 (20:51 +0000)
commit23f0bfeda93da3b14af879dc88c2434afb98a822
treeee3cfba176f2912f57add2d57fbb0548c7b6ebb3
parentec3f22782058058a712ae8e8313e25a273396824
Fixed the build of Clang's unit tests on MinGW. Also removed some
unnecesary conditionals and introduced a new convenience function.

The problem was that the list of libraries for Clang's unit tests was
<clang libraries> <system libraries> <llvm libraries>. As the llvm
libraries references symbols defined on the system libraries, those
were reported as undefined.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128484 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/AddLLVM.cmake
cmake/modules/LLVMConfig.cmake