[CMake] Don't generate linker script only when shared library isn't statically linked
authorPetr Hosek <phosek@chromium.org>
Thu, 26 Jul 2018 05:10:24 +0000 (05:10 +0000)
committerPetr Hosek <phosek@chromium.org>
Thu, 26 Jul 2018 05:10:24 +0000 (05:10 +0000)
commit4b59ed4001dd34f193410b561af001fbee4c2690
tree65e0bc39a7db801ad08118768473777e4ebab6fb
parent6a10864d442830fdcf20f16683753db6a691f888
[CMake] Don't generate linker script only when shared library isn't statically linked

Since r337668, we support statically linking dependencies only to shared
or static library. However, that change hasn't updated the check whether
to generate a linker script. We shouldn't generate linker script only in
the case when we aren't statically linked ABI into the shared library.

Differential Revision: https://reviews.llvm.org/D49834

llvm-svn: 338006
libcxx/CMakeLists.txt