diff --git a/wpilibc/src/main/native/include/Base.h b/wpilibc/src/main/native/include/Base.h index a87c801d99..bc51e5347b 100644 --- a/wpilibc/src/main/native/include/Base.h +++ b/wpilibc/src/main/native/include/Base.h @@ -7,6 +7,12 @@ #pragma once +#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ < 5 +static_assert(0, + "GCC must be 5 or greater. If building for the roboRIO, please " + "update to the 2018 toolchains."); +#endif + #include // MSVC 2013 doesn't allow "= default" on move constructors, but since we are