File: 0002-Build-using-C-20.patch

package info (click to toggle)
ska 1.0%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 572 kB
  • sloc: cpp: 5,556; makefile: 92; sh: 19
file content (33 lines) | stat: -rw-r--r-- 775 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: "Steve M. Robbins" <smr@debian.org>
Date: Sun, 17 Aug 2025 19:00:18 -0500
Subject: Build using C++20

---
 Makefile       | 2 +-
 tests/Makefile | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 8018b6a..e790ae1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 CXX = g++
-CXXFLAGS = -g -std=c++0x -O2
+CXXFLAGS = -g -std=c++20 -O2
 
 RM = rm -f
 MKDIR = mkdir
diff --git a/tests/Makefile b/tests/Makefile
index 36d202e..394882c 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -22,7 +22,7 @@ USER_TEST_DIR = .
 # Where to find user code.
 USER_DIR = ../src/
 
-CXX = g++ -std=c++0x
+CXX = g++ -std=c++20
 
 # Flags passed to the preprocessor.
 # Set Google Test's header directory as a system directory, such that