diff options
Diffstat (limited to 'src/pal/inc/pal.h')
-rw-r--r-- | src/pal/inc/pal.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/pal/inc/pal.h b/src/pal/inc/pal.h index 38ef778d53..66d83f1c42 100644 --- a/src/pal/inc/pal.h +++ b/src/pal/inc/pal.h @@ -192,11 +192,19 @@ typedef PVOID NATIVE_LIBRARY_HANDLE; #ifndef NOOPT_ATTRIBUTE #if defined(__llvm__) #define NOOPT_ATTRIBUTE optnone -#else +#elif defined(__GNUC__) #define NOOPT_ATTRIBUTE optimize("O0") #endif #endif +#ifndef NODEBUG_ATTRIBUTE +#if defined(__llvm__) +#define NODEBUG_ATTRIBUTE __nodebug__ +#elif defined(__GNUC__) +#define NODEBUG_ATTRIBUTE __artificial__ +#endif +#endif + #ifndef PAL_STDCPP_COMPAT #if __GNUC__ |