mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 11:12:42 +01:00
modules/c2english.pl: limit cpu time on semantic checker
This commit is contained in:
parent
73e5048fad
commit
b63c1f022b
2
modules/c2english.pl
vendored
2
modules/c2english.pl
vendored
@ -295,7 +295,7 @@ close $fh;
|
||||
|
||||
#my ($ret, $result) = execute(10, "gcc -std=c89 -pedantic -Werror -Wno-unused -fsyntax-only -fno-diagnostics-show-option -fno-diagnostics-show-caret code.c");
|
||||
my ($ret, $result) =
|
||||
execute(10, "gcc -std=c11 -pedantic -Werror -Wno-implicit -Wno-unused -fsyntax-only -fno-diagnostics-show-option -fno-diagnostics-show-caret code.c");
|
||||
execute(10, "ulimit -t 2; gcc -std=c11 -pedantic -Werror -Wno-implicit -Wno-unused -fsyntax-only -fno-diagnostics-show-option -fno-diagnostics-show-caret code.c");
|
||||
|
||||
if (not $force and $ret != 0) {
|
||||
$output = $result;
|
||||
|
Loading…
Reference in New Issue
Block a user