mirror of
https://github.com/mirror/make.git
synced 2025-01-16 15:20:39 +08:00
* tetss/run_make_test.pl: Avoid 'sh -c' for Windows portability.
This commit is contained in:
parent
f0182df865
commit
7c202b50fa
@ -436,7 +436,7 @@ sub set_more_defaults
|
||||
|
||||
my $redir = '2>&1';
|
||||
$redir = '' if os_name eq 'VMS';
|
||||
$string = `sh -c "$make_path -f null.mk $redir"`;
|
||||
$string = `$make_path -f null.mk $redir`;
|
||||
if ($string =~ /(.*): \*\*\* No targets\. Stop\./) {
|
||||
$make_name = $1;
|
||||
}
|
||||
@ -485,7 +485,7 @@ sub set_more_defaults
|
||||
$purify_errors = 0;
|
||||
}
|
||||
|
||||
$string = `sh -c "$make_path -j 2 -f null.mk $redir"`;
|
||||
$string = `$make_path -j 2 -f null.mk $redir`;
|
||||
if ($string =~ /not supported/) {
|
||||
$parallel_jobs = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user