rusefi-1/firmware/version_check.h

16 lines
488 B
C
Raw Normal View History

2021-05-09 17:26:53 -07:00
// This file asserts that the compiler is appropriate for rusEFI use.
#pragma once
// non-MCU builds are significantly more tolerant
#if EFI_PROD_CODE
static constexpr auto gccVersion = (__GNUC__ * 100) + (__GNUC_MINOR__ * 10) + ( __GNUC_PATCHLEVEL__ );
// Firmware builds require at least GCC 9.3.1
static_assert(gccVersion >= 931, "GCC compiler >= 9.3.1 required");
2021-12-02 19:28:10 -08:00
static_assert(gccVersion < 1000, "GCC10 not supported see https://github.com/rusefi/rusefi/labels/Gcc10");
2021-05-09 17:26:53 -07:00
#endif