Skip to content

Commit

Permalink
Disable stacktrace in asan build
Browse files Browse the repository at this point in the history
  • Loading branch information
snnn committed Jan 25, 2024
1 parent 0c2f0ba commit 8d4cc89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion onnxruntime/core/platform/windows/stacktrace.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <stacktrace>
#endif
#endif
#include <absl/base/config.h>

#include "core/common/logging/logging.h"
#include "core/common/gsl.h"
Expand Down Expand Up @@ -43,7 +44,7 @@ std::vector<std::string> GetStackTrace() {

namespace detail {
#ifndef NDEBUG
#if (defined __cpp_lib_stacktrace) && !(defined _OPSCHEMA_LIB_) && !(defined _GAMING_XBOX) && !(defined ONNXRUNTIME_ENABLE_MEMLEAK_CHECK)
#if (defined __cpp_lib_stacktrace) && !(defined _OPSCHEMA_LIB_) && !(defined _GAMING_XBOX) && !(defined ONNXRUNTIME_ENABLE_MEMLEAK_CHECK) && !(defined ABSL_HAVE_ADDRESS_SANITIZER)

Check warning on line 47 in onnxruntime/core/platform/windows/stacktrace.cc

View workflow job for this annotation

GitHub Actions / Lint C++

[cpplint] reported by reviewdog 🐶 Lines should be <= 120 characters long [whitespace/line_length] [2] Raw Output: onnxruntime/core/platform/windows/stacktrace.cc:47: Lines should be <= 120 characters long [whitespace/line_length] [2]

std::vector<std::string> CaptureStackTrace::Trace() const {
std::vector<std::string> stacktrace;
Expand Down

0 comments on commit 8d4cc89

Please sign in to comment.