aboutsummaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
authorMike Pall <mike>2023-09-09 12:47:27 +0200
committerMike Pall <mike>2023-09-09 12:47:27 +0200
commit4d05806ae046838826f9bab3b3b804eae26cd017 (patch)
tree260fb0416cbf53c115b43d40f98572bcae30983c /src/host
parent19707009bfb8d1fe59a5c328034e8e8ad1b56232 (diff)
downloadluajit-4d05806ae046838826f9bab3b3b804eae26cd017.tar.gz
luajit-4d05806ae046838826f9bab3b3b804eae26cd017.tar.bz2
luajit-4d05806ae046838826f9bab3b3b804eae26cd017.zip
Allow override of paths for genversion.lua.
Thanks to arch1t3cht. #1067
Diffstat (limited to 'src/host')
-rw-r--r--src/host/genversion.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/host/genversion.lua b/src/host/genversion.lua
index 42b5e6fe..5ead4c2b 100644
--- a/src/host/genversion.lua
+++ b/src/host/genversion.lua
@@ -5,9 +5,9 @@
5-- Released under the MIT license. See Copyright Notice in luajit.h 5-- Released under the MIT license. See Copyright Notice in luajit.h
6---------------------------------------------------------------------------- 6----------------------------------------------------------------------------
7 7
8local FILE_ROLLING_H = "luajit_rolling.h" 8local FILE_ROLLING_H = arg[1] or "luajit_rolling.h"
9local FILE_RELVER_TXT = "luajit_relver.txt" 9local FILE_RELVER_TXT = arg[2] or "luajit_relver.txt"
10local FILE_LUAJIT_H = "luajit.h" 10local FILE_LUAJIT_H = arg[3] or "luajit.h"
11 11
12local function file_read(file) 12local function file_read(file)
13 local fp = assert(io.open(file, "rb"), "run from the wrong directory") 13 local fp = assert(io.open(file, "rb"), "run from the wrong directory")