mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
clang emits calls to abort () under some unknown conditions.
Export abort () when compiling with clang.
This commit is contained in:
1 parent
095bb1bfa5
commit
4a0aaad022
3 files changed
+18
No files matched your search
@@ -1220,6 +1220,15 @@ grub_abort (void)
|
||||
grub_exit ();
|
||||
}
|
||||
|
||||
#if defined (__clang__) && !defined (GRUB_UTIL)
|
||||
/* clang emits references to abort(). */
|
||||
void __attribute__ ((noreturn))
|
||||
abort (void)
|
||||
{
|
||||
grub_abort ();
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
grub_fatal (const char *fmt, ...)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user