diff options
| author | Mike Pall <mike> | 2023-09-09 12:50:13 +0200 |
|---|---|---|
| committer | Mike Pall <mike> | 2023-09-09 12:50:13 +0200 |
| commit | cc8d88aafc5ff55e9d79d116ffe424a8c2b5c162 (patch) | |
| tree | 77e8bd22dbe652b47b9204d4b1c4696fb20ec637 | |
| parent | 41fb94defa8f830ce69a8122b03f6ac3216d392a (diff) | |
| parent | 4d05806ae046838826f9bab3b3b804eae26cd017 (diff) | |
| download | luajit-cc8d88aafc5ff55e9d79d116ffe424a8c2b5c162.tar.gz luajit-cc8d88aafc5ff55e9d79d116ffe424a8c2b5c162.tar.bz2 luajit-cc8d88aafc5ff55e9d79d116ffe424a8c2b5c162.zip | |
Merge branch 'master' into v2.1
| -rw-r--r-- | src/Makefile | 6 | ||||
| -rw-r--r-- | src/host/genversion.lua | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/Makefile b/src/Makefile index 8c47a16b..79340a96 100644 --- a/src/Makefile +++ b/src/Makefile | |||
| @@ -475,7 +475,11 @@ DASM_FLAGS= $(DASM_XFLAGS) $(DASM_AFLAGS) | |||
| 475 | DASM_DASC= vm_$(DASM_ARCH).dasc | 475 | DASM_DASC= vm_$(DASM_ARCH).dasc |
| 476 | 476 | ||
| 477 | GIT= git | 477 | GIT= git |
| 478 | GIT_RELVER= [ -e ../.git ] && $(GIT) show -s --format=%ct >luajit_relver.txt 2>/dev/null || cat ../.relver >luajit_relver.txt 2>/dev/null || : | 478 | ifeq (Windows,$(HOST_SYS)$(HOST_MSYS)) |
| 479 | GIT_RELVER= if exist ..\.git ( $(GIT) show -s --format=%%ct >luajit_relver.txt ) else ( type ..\.relver >luajit_relver.txt ) | ||
| 480 | else | ||
| 481 | GIT_RELVER= [ -e ../.git ] && $(GIT) show -s --format=%ct >luajit_relver.txt 2>/dev/null || cat ../.relver >luajit_relver.txt 2>/dev/null || : | ||
| 482 | endif | ||
| 479 | GIT_DEP= $(wildcard ../.git/HEAD ../.git/refs/heads/*) | 483 | GIT_DEP= $(wildcard ../.git/HEAD ../.git/refs/heads/*) |
| 480 | 484 | ||
| 481 | BUILDVM_O= host/buildvm.o host/buildvm_asm.o host/buildvm_peobj.o \ | 485 | BUILDVM_O= host/buildvm.o host/buildvm_asm.o host/buildvm_peobj.o \ |
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") |
