We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3684f6a commit 115b6a3Copy full SHA for 115b6a3
clang/docs/AddressSanitizer.rst
@@ -26,7 +26,16 @@ Typical slowdown introduced by AddressSanitizer is **2x**.
26
How to build
27
============
28
29
-Build LLVM/Clang with `CMake <https://llvm.org/docs/CMake.html>`_.
+Build LLVM/Clang with `CMake <https://llvm.org/docs/CMake.html>` and enable
30
+the ``compiler-rt`` runtime. An example CMake configuration that will allow
31
+for the use/testing of AddressSanitizer:
32
+
33
+.. code-block:: console
34
35
+ cmake -DCMAKE_BUILD_TYPE=Release \
36
+ -DLLVM_ENABLE_PROJECTS="clang" \
37
+ -DLLVM_ENABLE_RUNTIMES="compiler-rt" \
38
+ ../llvm
39
40
Usage
41
=====
0 commit comments