diff options
author | Nico Weber <thakis@chromium.org> | 2022-10-04 15:04:13 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-04 23:35:07 +0100 |
commit | 2af028132adca1ae9fbb81a655a9ce00420d8ad4 (patch) | |
tree | af00557114ea1bc3463ae163b0b3dc7c026ccc69 /Userland/Libraries/LibDebug | |
parent | ff4b912b7cc302b2ca1b49e3156b565bc4811106 (diff) | |
download | serenity-2af028132adca1ae9fbb81a655a9ce00420d8ad4.zip |
AK+Everywhere: Add AK_COMPILER_{GCC,CLANG} and use them most places
Doesn't use them in libc headers so that those don't have to pull in
AK/Platform.h.
AK_COMPILER_GCC is set _only_ for gcc, not for clang too. (__GNUC__ is
defined in clang builds as well.) Using AK_COMPILER_GCC simplifies
things some.
AK_COMPILER_CLANG isn't as much of a win, other than that it's
consistent with AK_COMPILER_GCC.
Diffstat (limited to 'Userland/Libraries/LibDebug')
-rw-r--r-- | Userland/Libraries/LibDebug/Dwarf/DwarfInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibDebug/Dwarf/DwarfInfo.cpp b/Userland/Libraries/LibDebug/Dwarf/DwarfInfo.cpp index 466b824b24..12826a662f 100644 --- a/Userland/Libraries/LibDebug/Dwarf/DwarfInfo.cpp +++ b/Userland/Libraries/LibDebug/Dwarf/DwarfInfo.cpp @@ -64,7 +64,7 @@ void DwarfInfo::populate_compilation_units() // HACK: Clang generates line programs for embedded resource assembly files, but not compile units. // Meaning that for graphical applications, some line info data would be unread, triggering the assertion below. // As a fix, we don't create compilation units for line programs that come from resource files. -#ifdef __clang__ +#if defined(AK_COMPILER_CLANG) if (line_program->source_files().size() == 1 && line_program->source_files()[0].name.view().contains("serenity_icon_"sv)) { debug_info_stream.seek(unit_offset); } else |