]> granicus.if.org Git - clang/commitdiff
[docs] Add a note about where UBSan emits logs
authorVedant Kumar <vsk@apple.com>
Mon, 29 Jul 2019 22:54:43 +0000 (22:54 +0000)
committerVedant Kumar <vsk@apple.com>
Mon, 29 Jul 2019 22:54:43 +0000 (22:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367270 91177308-0d34-0410-b5e6-96231b3b80d8

docs/UndefinedBehaviorSanitizer.rst

index 38cd3645bceacb9520e3131f0372a128453285c3..06d533f4931e221e3a54f25d2cb31593bd84b4a4 100644 (file)
@@ -224,6 +224,12 @@ will need to:
    ``UBSAN_OPTIONS=print_stacktrace=1``.
 #. 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
 ===================================
 To silence reports from unsigned integer overflow, you can set