dist-check: use -DLUA_USE_TRACE_LOGS for the debug build of luajit.

This commit is contained in:
Yichun Zhang (agentzh) 2014-05-17 14:19:01 -07:00
parent 1e7d38d479
commit f5d5e5a2fa
1 changed files with 6 additions and 2 deletions

View File

@ -9,7 +9,7 @@ use Cwd qw/cwd/;
sub sh ($);
my %opts;
getopts("lf:", \%opts) or die "Usage: $0 [-f] <cores>\n";
getopts("lf:", \%opts) or die "Usage: $0 [-f] [-l] <cores>\n";
my $jobs = shift || 4;
@ -81,7 +81,11 @@ sh "sudo $prefix/nginx/sbin/nginx -sstop";
warn "\n=== Debug Build ===\n";
$prefix = "/usr/local/openresty-debug";
unless ($opts{f}) {
sh "./configure --with-debug $cfg_opts --prefix=$prefix -j$jobs > /dev/null";
my $more_cfg_opts = '';
if ($lua eq 'LuaJIT') {
$more_cfg_opts .= " --with-luajit-xcflags='-DLUA_USE_TRACE_LOGS'"
}
sh "./configure --with-debug $cfg_opts $more_cfg_opts --prefix=$prefix -j$jobs > /dev/null";
}
sh "$make -j$jobs > /dev/null";
sh "sudo $make install > /dev/null";