Skip to content

Commit

Permalink
Only define __asan_default_options in make develop builds
Browse files Browse the repository at this point in the history
`NDEBUG` is not defined in `develop`, `debug`, `profile`, and `coverage`
builds.
`__SANITIZE_ADDRESS__` is defined in `develop` builds.
  • Loading branch information
Rangi42 committed Dec 31, 2024
1 parent 8363f25 commit 5963dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 5963dc9

Please sign in to comment.