aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/cfg.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua
index 56396239..0ff8f537 100644
--- a/src/luarocks/cfg.lua
+++ b/src/luarocks/cfg.lua
@@ -465,11 +465,8 @@ end
465 465
466if package.loaded.jit then 466if package.loaded.jit then
467 -- LuaJIT 467 -- LuaJIT
468 local lj_version = package.loaded.jit.version:match("LuaJIT (%d%.%d%.%d)") 468 local lj_version = package.loaded.jit.version:match("LuaJIT (.*)"):gsub("%-","")
469 defaults.rocks_provided["luajit"] = lj_version.."-1" 469 --defaults.rocks_provided["luajit"] = lj_version.."-1"
470 defaults.rocks_provided["jit"] = lj_version.."-1"
471 defaults.rocks_provided["ffi"] = lj_version.."-1"
472 defaults.rocks_provided["bit"] = lj_version.."-1"
473 defaults.rocks_provided["luabitop"] = lj_version.."-1" 470 defaults.rocks_provided["luabitop"] = lj_version.."-1"
474end 471end
475 472