From f615e68a43c6e36746d98b6933351168b59a2a9d Mon Sep 17 00:00:00 2001 From: Thad House Date: Fri, 8 Dec 2017 22:48:01 -0800 Subject: [PATCH] Require GCC 5 for wpilib build (#820) Will help in season with teams not upgrading their GCC. Will have a better error message. --- wpilibc/src/main/native/include/Base.h | 6 ++++++ 1 file changed, 6 insertions(+) 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