diff options
author | Sadie Powell <sadie@witchery.services> | 2021-02-28 19:54:12 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2021-02-28 19:54:30 +0000 |
commit | 384c880cc67fef92599a47ffab45af0c4c8f78f6 (patch) | |
tree | 05821d2e42dd3dbafa60a61bf44a3682c102813b | |
parent | 102c54990c8ae10943f4f0ac36b5e80b7b900268 (diff) |
Warn users of old compiler versions about the upcoming version bump.
-rwxr-xr-x | configure | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -308,6 +308,20 @@ to Perl v5.26 or newer. EOW } +# Warn about compiler versions that will not be supported in the future. +my %future_compilers = ( + AppleClang => version->parse('10.0'), + Clang => version->parse('5.0'), + GCC => version->parse('7.0'), +); +if (exists $future_compilers{$compiler{NAME}} && $compiler{VERSION} lt $future_compilers{$compiler{NAME}}) { + print_warning <<"EOW"; +You are building InspIRCd with $compiler{NAME} v$compiler{VERSION}. This is very old and +will not be supported by the next major version of InspIRCd. Please consider +updating to $compiler{NAME} v$future_compilers{$compiler{NAME}} or newer. +EOW +} + # Check that the user actually wants this version. if (defined $version{REAL_LABEL}) { print_warning <<'EOW'; |