File: g%2B%2B14.patch

package info (click to toggle)
ecbuild 3.13.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,068 kB
  • sloc: sh: 1,404; perl: 732; f90: 472; cpp: 466; python: 383; ansic: 304; fortran: 43; makefile: 15
file content (28 lines) | stat: -rw-r--r-- 1,084 bytes parent folder | download | duplicates (4)
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
Description: Hack to require g++14 standard, needed for g++ 8.3 compilation
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2019-07-16
Forwarded: no

--- a/cmake/ecbuild_get_cxx11_flags.cmake
+++ b/cmake/ecbuild_get_cxx11_flags.cmake
@@ -27,17 +27,17 @@
   check_cxx_compiler_flag(-std=c++0x has_std_cpp0x)
   check_cxx_compiler_flag(-hstd=c++11 has_hstd_cpp11)
   if(MINGW)
-    check_cxx_compiler_flag(-std=gnu++11 has_std_gnupp11)
+    check_cxx_compiler_flag(-std=gnu++14 has_std_gnupp11)
     check_cxx_compiler_flag(-std=gnu++0x has_std_gnupp0x)
   endif(MINGW)
   if(has_std_gnupp11)
-    set(${CXX11_FLAGS} "-std=gnu++11" PARENT_SCOPE)
+    set(${CXX11_FLAGS} "-std=gnu++14" PARENT_SCOPE)
   elseif(has_std_gnupp0x)
     set(${CXX11_FLAGS} "-std=gnu++0x" PARENT_SCOPE)
   elseif(has_hstd_cpp11)
     set(${CXX11_FLAGS} "-hstd=c++11" PARENT_SCOPE)
   elseif(has_std_cpp11)
-    set(${CXX11_FLAGS} "-std=c++11" PARENT_SCOPE)
+    set(${CXX11_FLAGS} "-std=c++14" PARENT_SCOPE)
   elseif(has_std_cpp0x)
     set(${CXX11_FLAGS} "-std=c++0x" PARENT_SCOPE)
   else()