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 and lrknox committed Jul 15, 2021
1 parent 4fdbb41 commit 652ffca
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 @@ -2714,7 +2714,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 @@ -2724,11 +2724,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 652ffca

Please sign in to comment.