Skip to content

Commit d59ef7c

Browse files
authored
Match C++ standard used in compiler-specific run-tests scripts to the CI script (#996)
f0018d7 modified the set C++ standard for some compilers in the CI script, but did not do so for the compiler-specific run-tests scripts. This fixes the discrepancy by matching setting in the compiler-specific scripts to that of the CI script (since the above commit apparently did update the tests results according to the newly set standard in the CI script). (It would be more robust to avoid the possibility of such a discrepancy by avoiding having such settings in multiple scripts.)
1 parent f1e2f6c commit d59ef7c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: regression-tests/test-results/apple-clang-14/run-tests-apple-clang.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ clang++ --version > clang-version.output 2>&1
99
for f in *.cpp
1010
do
1111
printf "Starting apple clang++ %s\n" "$f"
12-
clang++ -I../../../include -std=c++20 -pthread -o test.exe $f > $f.output 2>&1
12+
clang++ -I../../../include -std=c++2b -pthread -o test.exe $f > $f.output 2>&1
1313
rm -f $f
1414
let count=count+1
1515
if test -f "test.exe"; then

Diff for: regression-tests/test-results/clang-12/run-tests-clang-12.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ for f in *.cpp
1010
do
1111
let count=count+1
1212
printf "[%s] Starting clang++-12 %s\n" "$count" "$f"
13-
clang++-12 -I../../../include -std=c++20 -pthread -Wunused-parameter -o test.exe $f > $f.output 2>&1
13+
clang++-12 -I../../../include -std=c++2b -pthread -Wunused-parameter -o test.exe $f > $f.output 2>&1
1414
rm -f $f
1515
if test -f "test.exe"; then
1616
let exe_count=exe_count+1

Diff for: regression-tests/test-results/gcc-13/run-tests-gcc-13.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ for f in *.cpp
1010
do
1111
let count=count+1
1212
printf "[%s] Starting gcc 13 %s\n" "$count" "$f"
13-
g++ -I../../../include -std=c++20 -pthread -Wold-style-cast -Wunused-parameter -o test.exe $f > $f.output 2>&1
13+
g++ -I../../../include -std=c++2b -pthread -Wold-style-cast -Wunused-parameter -o test.exe $f > $f.output 2>&1
1414
rm -f $f
1515
if test -f "test.exe"; then
1616
let exe_count=exe_count+1

0 commit comments

Comments
 (0)