mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Allow override of paths for genversion.lua.
Thanks to arch1t3cht. #1067
This commit is contained in:
parent
19707009bf
commit
4d05806ae0
@ -5,9 +5,9 @@
|
|||||||
-- Released under the MIT license. See Copyright Notice in luajit.h
|
-- Released under the MIT license. See Copyright Notice in luajit.h
|
||||||
----------------------------------------------------------------------------
|
----------------------------------------------------------------------------
|
||||||
|
|
||||||
local FILE_ROLLING_H = "luajit_rolling.h"
|
local FILE_ROLLING_H = arg[1] or "luajit_rolling.h"
|
||||||
local FILE_RELVER_TXT = "luajit_relver.txt"
|
local FILE_RELVER_TXT = arg[2] or "luajit_relver.txt"
|
||||||
local FILE_LUAJIT_H = "luajit.h"
|
local FILE_LUAJIT_H = arg[3] or "luajit.h"
|
||||||
|
|
||||||
local function file_read(file)
|
local function file_read(file)
|
||||||
local fp = assert(io.open(file, "rb"), "run from the wrong directory")
|
local fp = assert(io.open(file, "rb"), "run from the wrong directory")
|
||||||
|
Loading…
Reference in New Issue
Block a user