[CMake] Fix in-tree libcxxabi build support after r283659
authorHal Finkel <hfinkel@anl.gov>
Sun, 9 Oct 2016 02:49:31 +0000 (02:49 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sun, 9 Oct 2016 02:49:31 +0000 (02:49 +0000)
commit5b5f4f0c74a5555c214cdb1bf37e1c5771ea6340
treeff8b5b8580b38a7910f0b5078f9fe64249512325
parent3b593f56fcfc98711489de2d8d1edb2087bb1c6c
[CMake] Fix in-tree libcxxabi build support after r283659

r283659 changed the argument to gen_link_script.py from SCRIPT_ABI_LIBNAME to
LIBCXX_LIBRARIES_PUBLIC, assuming that all of the items in the
LIBCXX_LIBRARIES_PUBLIC list were library names. This is not right, however,
for in-tree libcxxabi builds, we might have the target name in this list. There
was special logic to fixup SCRIPT_ABI_LIBNAME for this situation; change it to
apply a similar fixup for LIBCXX_LIBRARIES_PUBLIC.

llvm-svn: 283684
libcxx/lib/CMakeLists.txt