This is an automated email from the ASF dual-hosted git repository. ardovm pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 08d3a962ddbc9168482a65e371ec7f73169ea5ca Author: Arrigo Marchiori <[email protected]> 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 d0b5559200..24ad7aa98a 100644 --- a/main/set_soenv.in +++ b/main/set_soenv.in @@ -2019,6 +2019,12 @@ ToFile( "ALLOC", "@ALLOC@", "e" ); ToFile( "ENABLE_JEMALLOC", "@ENABLE_JEMALLOC@","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" );
