• Home
  • Raw
  • Download

Lines Matching +full:build +full:- +full:std

13 The primary way to run the libc++ tests is by using ``make check-cxx``.
25 -----
28 running ``llvm-lit`` on a specified test or directory. If you're unsure
30 `check-cxx-deps` target. For example:
32 .. code-block:: bash
34 $ cd <monorepo-root>
35 $ make -C <build> check-cxx-deps # If you want to make sure the targets get rebuilt
36 $ <build>/bin/llvm-lit -sv libcxx/test/std/re # Run all of the std::regex tests
37 …$ <build>/bin/llvm-lit -sv libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp # Run a single te…
38 …$ <build>/bin/llvm-lit -sv libcxx/test/std/atomics libcxx/test/std/threads # Test std::thread and
41 can be specified using the `--param=<name>=<val>` flag. The most common option
42 you'll want to change is the standard dialect (ie -std=c++XX). By default the
46 .. code-block:: bash
48 $ <build>/bin/llvm-lit -sv libcxx/test/std/containers # Run the tests with the newest -std
49 $ <build>/bin/llvm-lit -sv libcxx/test/std/containers --param=std=c++03 # Run the tests in C++03
54 .. code-block:: bash
56 $ <build>/bin/llvm-lit -sv libcxx/test --param=compile_flags='-Wcustom-warning'
57 $ <build>/bin/llvm-lit -sv libcxx/test --param=link_flags='-L/custom/library/path'
61 .. code-block:: bash
64 $ <build>/bin/llvm-lit -sv libcxx/test/std --param=cxx_under_test=/opt/bin/g++
67 $ <build>/bin/llvm-lit -sv libcxx/test --param=enable_warnings=False
70 $ <build>/bin/llvm-lit -sv libcxx/test --param=use_sanitizer=Undefined
73 ---------------------------------
77 file in the build directory from one of the configuration file templates in
78 ``libcxx/test/configs/``, and pointing ``llvm-lit`` (which is a wrapper around
80 ``<build>/bin/llvm-lit``, the generated ``lit.site.cfg`` file is always loaded
82 configuration, simply point the CMake build to it using
83 ``-DLIBCXX_TEST_CONFIG=<path-to-site-config>``, and that site configuration
87 .. code-block:: bash
89 $ cmake <options> -DLIBCXX_TEST_CONFIG=<path-to-site-config>
90 $ make -C <build> check-cxx-deps
91 $ <build>/bin/llvm-lit -sv libcxx/test # will use your custom config file
100 --------------------
102 To use these options you pass them on the LIT command line as ``--param NAME``
103 or ``--param NAME=VALUE``. Some options have default values specified during
111 Specify the compiler used to build the tests.
121 .. option:: std=<standard version>
135 library folder of the build directory is used.
179 -------------
187 - All tests are run in a temporary directory that is unique to that test and
189 - When a test needs data files as inputs, these data files can be saved in the
191 ``// FILE_DEPENDENCIES: <path-to-dependencies>``. Copies of these files or
194 - You should never hardcode a path from the build-host in a test, because that
196 - You should try to reduce the runtime dependencies of each test to the minimum.
199 though supporting Python is probably trivial for the build-host).
214 -------------------
217 the ``cxx-benchmarks`` target.
219 An example build would look like:
221 .. code-block:: bash
223 $ cd build
225 $ make cxx-benchmarks
227 This will build all of the benchmarks under ``<libcxx-src>/benchmarks`` to be
228 built against the just-built libc++. The compiled tests are output into
229 ``build/benchmarks``.
232 using the ``-DLIBCXX_BUILD_BENCHMARKS_NATIVE_STDLIB=ON`` CMake option. This
239 * :ref:`Building Libc++ <build instructions>`
243 ------------------
246 to run them as part of the build.
250 .. code-block:: bash
252 $ cd build/benchmarks
253 $ make cxx-benchmarks
255 $ ./algorithms.libcxx.out --benchmark_filter=BM_Sort.* # Only runs the sort benchmarks