mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Only define __asan_default_options in make develop builds
`NDEBUG` is not defined in `develop`, `debug`, `profile`, and `coverage` builds. `__SANITIZE_ADDRESS__` is defined in `develop` builds.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#define __SANITIZE_ADDRESS__
|
||||
#endif
|
||||
#endif
|
||||
#if defined(__SANITIZE_ADDRESS__) && !defined(__APPLE__)
|
||||
#if !defined(NDEBUG) && defined(__SANITIZE_ADDRESS__) && !defined(__APPLE__)
|
||||
extern "C" {
|
||||
char const *__asan_default_options(void) {
|
||||
return "detect_leaks=1";
|
||||
|
||||
Reference in New Issue
Block a user