summarylogtreecommitdiffstats
path: root/0001-fix-set-C-standard-to-14.patch
diff options
context:
space:
mode:
authorXiretza2022-05-29 20:43:32 +0200
committerXiretza2022-05-29 20:46:49 +0200
commitb4aa36c94e43aaf6a0e3be89ccd622e17b59b1a2 (patch)
treefec647c75bf427474c449a67313e43529ebe46bf /0001-fix-set-C-standard-to-14.patch
parent2057c762b56a60b6bf49e02f722265d0c93b5ac7 (diff)
downloadaur-b4aa36c94e43aaf6a0e3be89ccd622e17b59b1a2.tar.gz
Fix dependencies, patch for GCC >=11
Diffstat (limited to '0001-fix-set-C-standard-to-14.patch')
-rw-r--r--0001-fix-set-C-standard-to-14.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/0001-fix-set-C-standard-to-14.patch b/0001-fix-set-C-standard-to-14.patch
new file mode 100644
index 00000000000..3009702c4ca
--- /dev/null
+++ b/0001-fix-set-C-standard-to-14.patch
@@ -0,0 +1,30 @@
+From 10e2d2c8fc16de6eac4579bb022a36b16b8f1b69 Mon Sep 17 00:00:00 2001
+From: Xiretza <xiretza@xiretza.xyz>
+Date: Sun, 29 May 2022 20:31:49 +0200
+Subject: [PATCH] fix: set C++ standard to 14
+
+GCC >= 11 defaults to C++17, but abseil needs to be compiled with the
+same standard as the rest of the codebase, which sets CMAKE_CXX_STANDARD
+to 14.
+
+https://github.com/f4pga/prjxray/issues/1950
+---
+ CMakeLists.txt | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 8a20d04a..029fc1f5 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -21,6 +21,8 @@
+ # and then issuing `yum install cmake3` on the command line.
+ cmake_minimum_required(VERSION 3.5)
+
++set(CMAKE_CXX_STANDARD 14)
++
+ # Compiler id for Apple Clang is now AppleClang.
+ if (POLICY CMP0025)
+ cmake_policy(SET CMP0025 NEW)
+--
+2.36.1
+