From 81dfbb76f858fbc4084771fce4967ede04ed5f44 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Fri, 14 Sep 2012 04:35:14 +0000 Subject: [asan] add asan option log_path=PATH to let users redirect asan reports to a file PATH.PID instead of stderr git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163872 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/sanitizer/common_interface_defs.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/sanitizer/common_interface_defs.h b/include/sanitizer/common_interface_defs.h index f76462c68..1aa4f0b76 100644 --- a/include/sanitizer/common_interface_defs.h +++ b/include/sanitizer/common_interface_defs.h @@ -53,4 +53,10 @@ typedef signed long long s64; // NOLINT } // namespace __sanitizer +extern "C" { + // Tell the tools to write their reports to "path." instead of stderr. + void __sanitizer_set_report_path(const char *path) + SANITIZER_INTERFACE_ATTRIBUTE; +} // extern "C" + #endif // SANITIZER_COMMON_INTERFACE_DEFS_H -- cgit v1.2.3