OSDN Git Service

[runtimes] Allow passing Lit parameters through CMake
authorLouis Dionne <ldionne@apple.com>
Thu, 9 Jul 2020 15:54:09 +0000 (11:54 -0400)
committerLouis Dionne <ldionne@apple.com>
Thu, 9 Jul 2020 16:45:00 +0000 (12:45 -0400)
commit6f69318c7248275b509ecf0f88eb2ba725aaeb82
tree72b632043687ee287a6f49bb68663d44f722b958
parent5ab446cfe5503fd4431a94db4d741cf3b5fdcd15
[runtimes] Allow passing Lit parameters through CMake

This allows passing parameters to the test suites without using
LLVM_LIT_ARGS. The problem is that we sometimes want to set some
Lit arguments on the CMake command line, but the Lit parameters in
a CMake cache file. If the only knob to do that is LLVM_LIT_ARGS,
the command-line entry overrides the cache one, and the parameters
set by the cache are ignored.

This fixes a current issue with the build bots that they completely
ignore the 'std' param set by Lit, because other Lit arguments are
provided via LLVM_LIT_ARGS on the CMake command-line.
libcxx/CMakeLists.txt
libcxx/cmake/caches/Generic-cxx03.cmake
libcxx/cmake/caches/Generic-cxx11.cmake
libcxx/cmake/caches/Generic-cxx14.cmake
libcxx/cmake/caches/Generic-cxx17.cmake
libcxx/cmake/caches/Generic-cxx2a.cmake
libcxx/test/CMakeLists.txt
libcxxabi/CMakeLists.txt
libcxxabi/test/CMakeLists.txt