Skip to content

Commit 2c2fe35

Browse files
committed
Compile executables with -std=gnu++20 now.
This is the default at ICPC World Finals and EUC. The plan is still to make this configurable, e.g. by using the normal compiler flags, eventually.
1 parent 28916f6 commit 2c2fe35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

judge/judgedaemon.main.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ function fetch_executable_internal(
410410
$buildscript .= "gcc -Wall -O2 -std=gnu11 $source -o run -lm\n";
411411
break;
412412
case 'cpp':
413-
$buildscript .= "g++ -Wall -O2 -std=gnu++17 $source -o run\n";
413+
$buildscript .= "g++ -Wall -O2 -std=gnu++20 $source -o run\n";
414414
break;
415415
case 'java':
416416
$buildscript .= "javac -cp . -d . $source\n";

0 commit comments

Comments
 (0)