Allow passing additional compiler/linker flags for the tests
authorAlexander Richardson <arichardson.kde@gmail.com>
Fri, 23 Feb 2018 15:19:48 +0000 (15:19 +0000)
committerAlexander Richardson <arichardson.kde@gmail.com>
Fri, 23 Feb 2018 15:19:48 +0000 (15:19 +0000)
commit504d23551ee0b995b93f3177fa1728217abcfb53
treea71eec518ba0c7a50b509ac0eaf438dcf1609654
parentd43f40df1c5cd844cfc1eb7d9924498fdb0321ab
Allow passing additional compiler/linker flags for the tests

Summary:
These flags can be specified using the CMake variables
LIBCXX_TEST_LINKER_FLAGS and LIBCXX_TEST_COMPILER_FLAGS.
When building the tests for CHERI I need to pass additional
flags (such as -mabi=n64 or -mabi=purecap) to the compiler
for our test configurations

Reviewers: EricWF

Reviewed By: EricWF

Subscribers: christof, mgorny, cfe-commits

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

llvm-svn: 325914
libcxx/test/CMakeLists.txt
libcxx/test/lit.site.cfg.in
libcxx/utils/libcxx/test/config.py