[libc++] Move the linker script generation step to CMake
authorLouis Dionne <ldionne@apple.com>
Tue, 8 Oct 2019 21:10:20 +0000 (21:10 +0000)
committerLouis Dionne <ldionne@apple.com>
Tue, 8 Oct 2019 21:10:20 +0000 (21:10 +0000)
commit1ea8bb39b9c4ec71bb53196a2cdfa001328e1cac
tree95190bdeb5a1a0bf2961dffe40f066f22ca74241
parentf3ae951c09ef7ce98c62bd0941fb33cbb32f528b
[libc++] Move the linker script generation step to CMake

Summary:
This allows the linker script generation to query CMake properties
(specifically the dependencies of libc++.so) instead of having to
carry these dependencies around manually in global variables. Notice
the removal of the LIBCXX_INTERFACE_LIBRARIES global variable.

Reviewers: phosek, EricWF

Subscribers: mgorny, christof, jkorous, dexonsmith, libcxx-commits

Tags: #libc

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

llvm-svn: 374116
libcxx/CMakeLists.txt
libcxx/cmake/Modules/DefineLinkerScript.cmake [new file with mode: 0644]
libcxx/src/CMakeLists.txt
libcxx/utils/gen_link_script.py [deleted file]