diff options
author | Mike Pall <mike> | 2023-09-09 12:47:27 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2023-09-09 12:47:27 +0200 |
commit | 4d05806ae046838826f9bab3b3b804eae26cd017 (patch) | |
tree | 260fb0416cbf53c115b43d40f98572bcae30983c /src/host | |
parent | 19707009bfb8d1fe59a5c328034e8e8ad1b56232 (diff) | |
download | luajit-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.lua | 6 |
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 | ||
8 | local FILE_ROLLING_H = "luajit_rolling.h" | 8 | local FILE_ROLLING_H = arg[1] or "luajit_rolling.h" |
9 | local FILE_RELVER_TXT = "luajit_relver.txt" | 9 | local FILE_RELVER_TXT = arg[2] or "luajit_relver.txt" |
10 | local FILE_LUAJIT_H = "luajit.h" | 10 | local FILE_LUAJIT_H = arg[3] or "luajit.h" |
11 | 11 | ||
12 | local function file_read(file) | 12 | local 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") |