You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ar...@apache.org on 2026/09/12 20:05:55 UTC
(openoffice) 02/03: Disable the sanitizer's leak checks during the build
This is an automated email from the ASF dual-hosted git repository.
ardovm pushed a commit to branch asan
in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit b9b0d1ff8fc8ccab85e4489680939ff8203c3e6d
Author: Arrigo Marchiori <ar...@yahoo.it>
AuthorDate: Sat Sep 12 22:02:45 2026 +0200
Disable the sanitizer's leak checks during the build
Many tools deliberately do not care about memory leaks, due to their
intended usage.
---
main/set_soenv.in | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/main/set_soenv.in b/main/set_soenv.in
index 875d741428..6e7ca19e5e 100644
--- a/main/set_soenv.in
+++ b/main/set_soenv.in
@@ -1999,6 +1999,12 @@ ToFile( "USE_SYSTEM_STL", "@USE_SYSTEM_STL@", "e" );
ToFile( "ALLOC", "@ALLOC@", "e" );
ToFile( "ENABLE_SYMBOLS", "@ENABLE_SYMBOLS@", "e" );
ToFile( "ENABLE_SANITIZER", "@ENABLE_SANITIZER@", "e" );
+if ( "@ENABLE_SANITIZER@" eq "TRUE" ) {
+ # Many tools leak memory, and it does not make sense to fix them all.
+ # Instead of disabling memory leak detection for each one of them,
+ # it's easiest to disable it fort the whole build.
+ ToFile( "ASAN_OPTIONS", "detect_leaks=0", "e" );
+}
ToFile( "DISABLE_STRIP", "@DISABLE_STRIP@", "e" );
ToFile( "LFS_CFLAGS", "@LFS_CFLAGS@", "e" );
ToFile( "ENABLE_CRASHDUMP", "@ENABLE_CRASHDUMP@", "e" );