2021-12-20 13:17:53 -08:00
|
|
|
// This file asserts that the compiler is appropriate for rusEFI use.
|
|
|
|
|
|
|
|
// non-MCU builds are significantly more tolerant
|
|
|
|
#if EFI_PROD_CODE
|
|
|
|
|
|
|
|
#define GCC_VERSION ((__GNUC__ * 100) + (__GNUC_MINOR__ * 10) + ( __GNUC_PATCHLEVEL__ ))
|
|
|
|
|
|
|
|
#define STR_HELPER(x) #x
|
|
|
|
#define STR(x) STR_HELPER(x)
|
|
|
|
|
2022-10-18 19:30:16 -07:00
|
|
|
#pragma message("GCC is " STR(__GNUC__)"."STR(__GNUC_MINOR__)"."STR(__GNUC_PATCHLEVEL__))
|
2021-12-20 13:17:53 -08:00
|
|
|
|
2022-11-08 15:10:53 -08:00
|
|
|
// Firmware builds require at least GCC 11.3.1
|
|
|
|
#if (GCC_VERSION < 1131)
|
|
|
|
#error "GCC compiler >= 11.3.1 required"
|
2022-09-27 18:39:35 -07:00
|
|
|
#endif
|
|
|
|
|
2024-05-02 10:53:38 -07:00
|
|
|
#if (GCC_VERSION > 1300)
|
|
|
|
#error "Looks like we support only 11 and 12?"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2021-12-20 13:17:53 -08:00
|
|
|
#endif
|