rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
gcc_version_check.c
Go to the documentation of this file.
1
// This file asserts that the compiler is appropriate for rusEFI use.
2
3
// non-MCU builds are significantly more tolerant
4
#if EFI_PROD_CODE
5
6
#define GCC_VERSION ((__GNUC__ * 100) + (__GNUC_MINOR__ * 10) + ( __GNUC_PATCHLEVEL__ ))
7
8
#define STR_HELPER(x) #x
9
#define STR(x) STR_HELPER(x)
10
11
#pragma message("GCC is " STR(__GNUC__)"."STR(__GNUC_MINOR__)"."STR(__GNUC_PATCHLEVEL__))
12
13
// Firmware builds require at least GCC 11.3.1
14
#if (GCC_VERSION < 1131)
15
#error "GCC compiler >= 11.3.1 required"
16
#endif
17
18
#if (GCC_VERSION > 1500)
19
#error "Looks like we support only 11-14?"
20
#endif
21
22
23
#endif
Generated on Wed Oct 1 2025 00:12:07 for rusEFI by
1.9.8