The build now fails if the avr-gcc version is too old. A verbose error message reports Arduino upgrade information. Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>pull/776/head
parent
ed667bc97c
commit
4ea325f966
@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#define KALEIDOSCOPE_AVR_GCC_MINIMAL_VERSION 5
|
||||
#define KALEIDOSCOPE_AVR_GCC_MINIMAL_MINOR 4
|
||||
|
||||
#if (__GNUC__ < KALEIDOSCOPE_AVR_GCC_MINIMAL_VERSION) \
|
||||
|| ( (__GNUC__ == KALEIDOSCOPE_AVR_GCC_MINIMAL_VERSION) \
|
||||
&& (__GNUC_MINOR__ < KALEIDOSCOPE_AVR_GCC_MINIMAL_MINOR) \
|
||||
)
|
||||
#error Kaleidoscope requires Arduino version >= 1.8.6 to build. Please upgrade.
|
||||
#endif
|
Loading…
Reference in new issue