Skip to content

Commit a7beaf4

Browse files
committed
Check Lua 5.4 support
1 parent daab99b commit a7beaf4

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

amalg-scm-0.rockspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ description = {
1414
license = "MIT"
1515
}
1616
dependencies = {
17-
"lua >= 5.1, < 5.4"
17+
"lua >= 5.1, < 5.5"
1818
}
1919
build = {
2020
type = "builtin",

tests/run.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ if [%1]==[51] (
88
call :runtest 52
99
) else if [%1]==[53] (
1010
call :runtest 53
11+
) else if [%1]==[54] (
12+
call :runtest 54
1113
) else (
1214
call :runtest 51
1315
)

tests/run.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
#!/bin/bash -e
22

33
LUAV=$1
4-
if [ x"$1" != x5.1 -a x"$1" != x5.2 -a x"$1" != x5.3 ]; then
4+
if [ x"$1" != x5.1 -a x"$1" != x5.2 -a x"$1" != x5.3 -a x"$1" != x5.4 ]; then
55
LUAV=5.1
66
fi
77

8-
INC=/usr/include/lua$LUAV
8+
if [ "$LUAV" == 5.4 ]; then
9+
INC=/home/siffiejoe/.self/programs/lua$LUAV
10+
else
11+
INC=/usr/include/lua$LUAV
12+
fi
913

1014
gcc -Wall -Wextra -Os -fpic -I"$INC" -shared -o cmod.so cmod.c
1115
gcc -Wall -Wextra -Os -fpic -I"$INC" -shared -o aiomod.so aiomod.c

0 commit comments

Comments
 (0)