forked from OSchip/llvm-project
[libc++] Move the default site config template alongside other config files
This commit is contained in:
parent
a711b5eeb0
commit
f9ca2057b9
|
@ -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.")
|
||||
|
|
|
@ -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 ``<build>/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=<path-to-site-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
|
||||
``<build>/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=<path-to-site-config>``, and that site configuration
|
||||
will be used instead. That file can use CMake variables inside it to make
|
||||
configuration easier.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
|
|
Loading…
Reference in New Issue