Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions judge/judgedaemon.main.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@

logmsg(LOG_DEBUG, "Executing command: $command");
system($command, $retval_local);
if ($retval !== DONT_CARE) $retval = $retval_local;

Check failure on line 319 in judge/judgedaemon.main.php

View workflow job for this annotation

GitHub Actions / phpcs

Inline control structures are not allowed

if ($retval_local !== 0) {
if ($log_nonzero_exitcode) {
Expand Down Expand Up @@ -463,10 +463,10 @@
}
switch ($execlang) {
case 'c':
$buildscript .= "gcc -Wall -O2 -std=gnu11 $source -o run -lm\n";
$buildscript .= "gcc -Wall -O2 -static -std=gnu11 $source -o run -lm\n";
break;
case 'cpp':
$buildscript .= "g++ -Wall -O2 -std=gnu++20 $source -o run\n";
$buildscript .= "g++ -Wall -O2 -static -std=gnu++20 $source -o run\n";
break;
case 'java':
$buildscript .= "javac -cp . -d . $source\n";
Expand Down
2 changes: 1 addition & 1 deletion sql/files/defaultdata/compare/build
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
g++ -std=c++11 -pedantic -g -O1 -Wall -fstack-protector -D_FORTIFY_SOURCE=2 -fPIE -Wformat -Wformat-security -fPIE -Wl,-z,relro -Wl,-z,now compare.cc -o run
g++ -std=c++11 -pedantic -g -O1 -static -Wall -fstack-protector -D_FORTIFY_SOURCE=2 -fPIE -Wformat -Wformat-security -fPIE -Wl,-z,relro -Wl,-z,now compare.cc -o run
Loading