diff --git a/libcxx/CMakeLists.txt b/libcxx/CMakeLists.txt index fd877f1adaeb..f6cda98a0f5f 100644 --- a/libcxx/CMakeLists.txt +++ b/libcxx/CMakeLists.txt @@ -109,7 +109,7 @@ option(LIBCXX_ENABLE_FILESYSTEM "Build filesystem as part of the main libc++ lib option(LIBCXX_INCLUDE_TESTS "Build the libc++ tests." ${LLVM_INCLUDE_TESTS}) option(LIBCXX_ENABLE_PARALLEL_ALGORITHMS "Enable the parallel algorithms library. This requires the PSTL to be available." OFF) option(LIBCXX_TEST_GDB_PRETTY_PRINTERS "Test gdb pretty printers." OFF) -set(LIBCXX_TEST_CONFIG "${CMAKE_CURRENT_SOURCE_DIR}/test/lit.site.cfg.in" CACHE STRING +set(LIBCXX_TEST_CONFIG "${CMAKE_CURRENT_SOURCE_DIR}/test/configs/legacy.cfg.in" CACHE STRING "The Lit testing configuration to use when running the tests.") set(LIBCXX_TEST_PARAMS "" CACHE STRING "A list of parameters to run the Lit test suite with.") diff --git a/libcxx/docs/TestingLibcxx.rst b/libcxx/docs/TestingLibcxx.rst index 0c9c87d489bc..d42becfd5c3d 100644 --- a/libcxx/docs/TestingLibcxx.rst +++ b/libcxx/docs/TestingLibcxx.rst @@ -74,14 +74,15 @@ Using a custom site configuration By default, the libc++ test suite will use a site configuration that matches the current CMake configuration. It does so by generating a ``lit.site.cfg`` -file in the build directory from the ``libcxx/test/lit.site.cfg.in`` template, -and pointing ``llvm-lit`` (which is a wrapper around ``llvm/utils/lit/lit.py``) -to that file. So when you're running ``/bin/llvm-lit``, the generated -``lit.site.cfg`` file is always loaded instead of ``libcxx/test/lit.cfg.py``. -If you want to use a custom site configuration, simply point the CMake build -to it using ``-DLIBCXX_TEST_CONFIG=``, and that site -configuration will be used instead. That file can use CMake variables inside -itself to make configuration easier. +file in the build directory from one of the configuration file templates in +``libcxx/test/configs/``, and pointing ``llvm-lit`` (which is a wrapper around +``llvm/utils/lit/lit.py``) to that file. So when you're running +``/bin/llvm-lit``, the generated ``lit.site.cfg`` file is always loaded +instead of ``libcxx/test/lit.cfg.py``. If you want to use a custom site +configuration, simply point the CMake build to it using +``-DLIBCXX_TEST_CONFIG=``, and that site configuration +will be used instead. That file can use CMake variables inside it to make +configuration easier. .. code-block:: bash diff --git a/libcxx/test/lit.site.cfg.in b/libcxx/test/configs/legacy.cfg.in similarity index 100% rename from libcxx/test/lit.site.cfg.in rename to libcxx/test/configs/legacy.cfg.in