mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Toolchain dependend instrumentation __attribute__
GCC sometimes complains about the The `no_sanitize("address")` syntax, and clang sometimes complains abouth the `no_sanitize_address` syntax. Both claim to support both, so that's neat!
This commit is contained in:
parent
8050ef24a6
commit
7d8431dcfc
Notes:
sideshowbarker
2024-07-16 23:08:48 +09:00
Author: https://github.com/HerrSpace Commit: https://github.com/SerenityOS/serenity/commit/7d8431dcfc Pull-request: https://github.com/SerenityOS/serenity/pull/23911 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/Hendiadyoin1 Reviewed-by: https://github.com/LucasChollet
1 changed files with 5 additions and 1 deletions
|
@ -189,7 +189,11 @@
|
|||
#ifdef NO_SANITIZE_ADDRESS
|
||||
# undef NO_SANITIZE_ADDRESS
|
||||
#endif
|
||||
#define NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address))
|
||||
#if defined(AK_COMPILER_CLANG)
|
||||
# define NO_SANITIZE_ADDRESS __attribute__((no_sanitize("address")))
|
||||
#else
|
||||
# define NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address))
|
||||
#endif
|
||||
|
||||
#ifdef NAKED
|
||||
# undef NAKED
|
||||
|
|
Loading…
Reference in a new issue