Changeset

6778:4009ae66e0f0

util.dependencies: Only abort on Lua versions before 5.1, log a warning about 5.2 and above for now
author Kim Alvefur <zash@zash.se>
date Sat, 21 Feb 2015 10:38:44 +0100
parents 6777:5de6b93d0190
children 6779:6236668da30a
files util/dependencies.lua
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/util/dependencies.lua	Sat Feb 21 10:36:37 2015 +0100
+++ b/util/dependencies.lua	Sat Feb 21 10:38:44 2015 +0100
@@ -47,10 +47,10 @@
 end;
 
 local function check_dependencies()
-	if _VERSION ~= "Lua 5.1" then
+	if _VERSION < "Lua 5.1" then
 		print "***********************************"
 		print("Unsupported Lua version: ".._VERSION);
-		print("Only Lua 5.1 is supported.");
+		print("At least Lua 5.1 is required.");
 		print "***********************************"
 		return false;
 	end
@@ -136,6 +136,9 @@
 end
 
 local function log_warnings()
+	if _VERSION > "Lua 5.1" then
+		log("warn", "Support for %s is experimental, please report any issues", _VERSION);
+	end
 	local ssl = softreq"ssl";
 	if ssl then
 		local major, minor, veryminor, patched = ssl._VERSION:match("(%d+)%.(%d+)%.?(%d*)(M?)");