Skip to content

Commit

Permalink
Sets the memory alloc sanity check option to disabled in autotools (#686
Browse files Browse the repository at this point in the history
)
  • Loading branch information
derobins authored May 25, 2021
1 parent bb1c2d6 commit 1b4da83
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2786,7 +2786,7 @@ AC_ARG_ENABLE([memory-alloc-sanity-check],
more memory use and somewhat slower allocation.
This option is orthogonal to the
--enable-using-memchecker option.
[default=yes if debug build, otherwise no]
[default=no]
])],
[MEMORYALLOCSANITYCHECK=$enableval])

Expand All @@ -2796,11 +2796,7 @@ AC_SUBST([MEMORYALLOCSANITYCHECK])

## Set default
if test "X-$MEMORYALLOCSANITYCHECK" = X- ; then
if test "X-$BUILD_MODE" = "X-debug" ; then
MEMORYALLOCSANITYCHECK=yes
else
MEMORYALLOCSANITYCHECK=no
fi
MEMORYALLOCSANITYCHECK=no
fi

case "X-$MEMORYALLOCSANITYCHECK" in
Expand Down

0 comments on commit 1b4da83

Please sign in to comment.