now we enable -DLUAJIT_USE_VALGRIND -DLUA_USE_APICHECK -DLUA_USE_ASSERT flags for luajit when --with-debug is specified.

This commit is contained in:
agentzh (章亦春)
2012-02-22 23:33:56 +08:00
parent 71a3060051
commit c528989ead
2 changed files with 10 additions and 9 deletions

3
util/configure vendored
View File

@ -495,7 +495,8 @@ _END_
my $extra_opts = ' TARGET_STRIP=@:';
if ($opts->{debug}) {
$extra_opts = ' CCDEBUG=-g Q=';
$extra_opts = q{ CCDEBUG=-g Q= XCFLAGS='-DLUAJIT_USE_VALGRIND}
.q{ -DLUA_USE_APICHECK -DLUA_USE_ASSERT'};
}
if ($platform =~ /bsd/i) {