1 //===-- utilities_posix.cpp -------------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include <features.h> // IWYU pragma: keep (for __BIONIC__ macro)
12 #include "gwp_asan/definitions.h"
14 extern "C" GWP_ASAN_WEAK
void android_set_abort_message(const char *);
20 void die(const char *Message
) {
22 if (&android_set_abort_message
!= nullptr)
23 android_set_abort_message(Message
);
26 fprintf(stderr
, "%s", Message
);
30 } // namespace gwp_asan