[libc++] Simplify how we define the linker script for libc++
authorLouis Dionne <ldionne.2@gmail.com>
Wed, 3 Aug 2022 00:30:28 +0000 (20:30 -0400)
committerLouis Dionne <ldionne.2@gmail.com>
Wed, 3 Aug 2022 13:29:50 +0000 (09:29 -0400)
commitb7fb8563974d83f9eb8191fdfbebfd04147a2cbd
tree2be3fd97e817f17c534aa96b20c5f2a19a782852
parent44b4f4df31ab71457ecd7127e64526cd8237bfa4
[libc++] Simplify how we define the linker script for libc++

Trying to be generic didn't work properly because we had to special-case
some interface libraries that we didn't want in the linker script. Instead,
only look at the ABI and the unwinding libraries explicitly.

This should solve the issue reported by @dim in [1].

[1]: https://discourse.llvm.org/t/15-0-0-rc1-has-been-tagged/64174/22

Differential Revision: https://reviews.llvm.org/D131037
libcxx/cmake/Modules/DefineLinkerScript.cmake [deleted file]
libcxx/src/CMakeLists.txt