changeset 3992:ef7042f3a409

Change compiler version requirements
author eMTee <emtee11@gmail.com>
date Mon, 01 Apr 2024 18:37:42 +0200
parents 72c3befca2f2
children 1a59791ebf13
files dcpp/compiler.h
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dcpp/compiler.h	Mon Apr 01 17:59:12 2024 +0200
+++ b/dcpp/compiler.h	Mon Apr 01 18:37:42 2024 +0200
@@ -26,6 +26,12 @@
 #error GCC 8.1 is required
 #endif
 
+//@todo remove when we raise WIN32 gcc version requirement to higher than this
+
+#if __GNUC__ < 9 || (__GNUC__ == 9 && __GNUC_MINOR__ < 2)
+#warning "Randomization quality will be poor using this compiler, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85494"
+#endif
+
 #ifdef HAVE_OLD_MINGW
 #error Regular MinGW may have stability problems; use a MinGW package from mingw-w64
 // see <https://bugs.launchpad.net/dcplusplus/+bug/2032940> for details
@@ -33,8 +39,8 @@
 
 #else // _WIN32
 
-#if __GNUC__ < 5 || (__GNUC__ == 5 && __GNUC_MINOR__ < 4)
-#error GCC 5.4 is required
+#if __GNUC__ < 7 || (__GNUC__ == 7 && __GNUC_MINOR__ < 5)
+#error GCC 7.5 is required
 #endif
 
 #endif // _WIN32