Skip to content

Commit e841fea

Browse files
committed
Build programs as C++20
Use g++-13 for Actions workflows.
1 parent 726bf1c commit e841fea

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The binaries that we want to build
22
PGMS := bin/lists bin/section_data bin/toc_diff bin/list_issues bin/set_status
3-
CXXFLAGS := -std=c++17 -Wall -g -O2 -D_GLIBCXX_ASSERTIONS
3+
CXXFLAGS := -std=c++20 -Wall -g -O2 -D_GLIBCXX_ASSERTIONS
44

55
# Running 'make debug' is equivalent to 'make DEBUG=1'
66
ifeq "$(MAKECMDGOALS)" "debug"

bin/build_pgms.bat

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
echo "Use -m32 switch to force 32-bit build"
2-
g++ %* -std=c++17 -DNDEBUG -O2 -o bin/lists.exe src/date.cpp src/issues.cpp src/status.cpp src/sections.cpp src/mailing_info.cpp src/report_generator.cpp src/metadata.cpp src/lists.cpp
3-
g++ %* -std=c++17 -o bin/section_data.exe src/section_data.cpp
4-
g++ %* -std=c++17 -o bin/toc_diff.exe src/toc_diff.cpp
5-
g++ %* -std=c++17 -DNDEBUG -O2 -o bin/list_issues.exe src/date.cpp src/issues.cpp src/status.cpp src/sections.cpp src/metadata.cpp src/list_issues.cpp
6-
g++ %* -std=c++17 -DNDEBUG -O2 -o bin/set_status.exe src/set_status.cpp src/status.cpp
2+
g++ %* -std=c++20 -DNDEBUG -O2 -o bin/lists.exe src/date.cpp src/issues.cpp src/status.cpp src/sections.cpp src/mailing_info.cpp src/report_generator.cpp src/metadata.cpp src/lists.cpp
3+
g++ %* -std=c++20 -o bin/section_data.exe src/section_data.cpp
4+
g++ %* -std=c++20 -o bin/toc_diff.exe src/toc_diff.cpp
5+
g++ %* -std=c++20 -DNDEBUG -O2 -o bin/list_issues.exe src/date.cpp src/issues.cpp src/status.cpp src/sections.cpp src/metadata.cpp src/list_issues.cpp
6+
g++ %* -std=c++20 -DNDEBUG -O2 -o bin/set_status.exe src/set_status.cpp src/status.cpp
77

0 commit comments

Comments
 (0)