]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Allow override of paths for genversion.lua.
authorMike Pall <mike>
Sat, 9 Sep 2023 10:47:27 +0000 (12:47 +0200)
committerMike Pall <mike>
Sat, 9 Sep 2023 10:47:27 +0000 (12:47 +0200)
Thanks to arch1t3cht. #1067

src/host/genversion.lua

index 42b5e6fe9a76ad421a89058a4d0fb8baad904a88..5ead4c2b8d41f22e74984d6001015843b314efc8 100644 (file)
@@ -5,9 +5,9 @@
 -- Released under the MIT license. See Copyright Notice in luajit.h
 ----------------------------------------------------------------------------
 
-local FILE_ROLLING_H = "luajit_rolling.h"
-local FILE_RELVER_TXT = "luajit_relver.txt"
-local FILE_LUAJIT_H = "luajit.h"
+local FILE_ROLLING_H = arg[1] or "luajit_rolling.h"
+local FILE_RELVER_TXT = arg[2] or "luajit_relver.txt"
+local FILE_LUAJIT_H = arg[3] or "luajit.h"
 
 local function file_read(file)
   local fp = assert(io.open(file, "rb"), "run from the wrong directory")