Pārlūkot izejas kodu

Merge pull request #5559 from thinkyhead/rc_minimum_gcc_version

Throw an error for gcc before 4.7
Scott Lahteine 8 gadus atpakaļ
vecāks
revīzija
41a30923f3
1 mainītis faili ar 3 papildinājumiem un 4 dzēšanām
  1. 3
    4
      Marlin/SanityCheck.h

+ 3
- 4
Marlin/SanityCheck.h Parādīt failu

@@ -27,11 +27,10 @@
27 27
  */
28 28
 
29 29
 /**
30
- * Due to the high number of issues related with old versions of Arduino IDE
31
- * we now prevent Marlin from compiling with older toolkits.
30
+ * Require gcc 4.7 or newer (first included with Arduino 1.6.8) for C++11 features.
32 31
  */
33
-#if !defined(ARDUINO) || ARDUINO < 10608
34
-  #error "Versions of Arduino IDE prior to 1.6.8 are no longer supported, please update your toolkit."
32
+#if __cplusplus < 201103L
33
+  #error "Marlin requires C++11 support (gcc >= 4.7, Arduino IDE >= 1.6.8). Please upgrade your toolchain."
35 34
 #endif
36 35
 
37 36
 /**

Notiek ielāde…
Atcelt
Saglabāt