Sfoglia il codice sorgente

[docs] Add a note about where UBSan emits logs

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367270 91177308-0d34-0410-b5e6-96231b3b80d8
Vedant Kumar 6 anni fa
parent
commit
d3772ae8b5
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      docs/UndefinedBehaviorSanitizer.rst

+ 6 - 0
docs/UndefinedBehaviorSanitizer.rst

@@ -224,6 +224,12 @@ will need to:
    ``UBSAN_OPTIONS=print_stacktrace=1``.
    ``UBSAN_OPTIONS=print_stacktrace=1``.
 #. Make sure ``llvm-symbolizer`` binary is in ``PATH``.
 #. Make sure ``llvm-symbolizer`` binary is in ``PATH``.
 
 
+Logging
+=======
+
+The default log file for diagnostics is "stderr". To log diagnostics to another
+file, you can set ``UBSAN_OPTIONS=log_path=...``.
+
 Silencing Unsigned Integer Overflow
 Silencing Unsigned Integer Overflow
 ===================================
 ===================================
 To silence reports from unsigned integer overflow, you can set
 To silence reports from unsigned integer overflow, you can set