Changers

Yuriy Skalko yuriy.skalko at gmail.com
Mon Nov 16 07:26:58 UTC 2020


>> I'm not sure about section to add this. Please amend the attached patch.
> 
> Please commit your version, IMHO the requirements belong to INSTALL/README. 
> Pavel

What about specifying also version for Clang? Minimal version with full 
C++11 support is 3.3 (https://clang.llvm.org/cxx_status.html).

Also updated Development.lyx about allowed C++11 usage.

Yuriy

-------------- next part --------------
From 5e4cd63333f7d9e3d2b68bf606aabd324767114f Mon Sep 17 00:00:00 2001
From: Yuriy Skalko <yuriy.skalko at gmail.com>
Date: Mon, 16 Nov 2020 09:19:10 +0200
Subject: [PATCH] Bump minimal GCC version to 4.9 and specify minimal Clang
 version 3.3

---
 INSTALL                 | 2 +-
 README                  | 2 +-
 lib/doc/Development.lyx | 6 ++++++
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/INSTALL b/INSTALL
index 2861d7b1e8..83d8f743e8 100644
--- a/INSTALL
+++ b/INSTALL
@@ -53,7 +53,7 @@ Requirements
 ------------
 
 First of all, you will need a C++11 standard conforming compiler, like gcc (at
-least 4.8) or clang.
+least 4.9) or clang (at least 3.3).
 
 LyX makes great use of the C++ Standard Template Library (STL).
 This means that gcc users will have to install the relevant libstdc++
diff --git a/README b/README
index 222a9932a5..a0a44dc75b 100644
--- a/README
+++ b/README
@@ -88,7 +88,7 @@ What do I need to compile LyX from the source distribution?
 
     * A C++11 compiler. Development is being done mainly with gcc/g++,
       but clang and MSVC are known to work too. As of LyX 2.4.0, you
-      need at least gcc 4.7.
+      need at least gcc 4.9.
 
     * The Qt library, at least version 5.2 (5.6 recommended). It is
       still possible to compile with Qt 4.8, but this is not
diff --git a/lib/doc/Development.lyx b/lib/doc/Development.lyx
index 4e588ac380..39a453c063 100644
--- a/lib/doc/Development.lyx
+++ b/lib/doc/Development.lyx
@@ -5362,6 +5362,12 @@ noprefix "false"
 .
 \end_layout
 
+\begin_layout Itemize
+As of LyX 2.4.0, you can use features of C++11.
+ Accordingly you have to use C++11 standard conforming compiler, like GCC
+ (at least 4.9) or Clang (at least 3.3).
+\end_layout
+
 \begin_layout Itemize
 Adapt the code to the structures already existing in \SpecialChar LyX
 , or in the case that
-- 
2.28.0.windows.1



More information about the lyx-devel mailing list