summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-02-28 19:54:12 +0000
committerSadie Powell <sadie@witchery.services>2021-02-28 19:54:30 +0000
commit384c880cc67fef92599a47ffab45af0c4c8f78f6 (patch)
tree05821d2e42dd3dbafa60a61bf44a3682c102813b
parent102c54990c8ae10943f4f0ac36b5e80b7b900268 (diff)
Warn users of old compiler versions about the upcoming version bump.
-rwxr-xr-xconfigure14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure b/configure
index a980aee98..63256f87a 100755
--- a/configure
+++ b/configure
@@ -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';