Skip to content

Commit

Permalink
Check Lua 5.4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
siffiejoe committed Jul 6, 2020
1 parent daab99b commit a7beaf4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion amalg-scm-0.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ description = {
license = "MIT"
}
dependencies = {
"lua >= 5.1, < 5.4"
"lua >= 5.1, < 5.5"
}
build = {
type = "builtin",
Expand Down
2 changes: 2 additions & 0 deletions tests/run.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ if [%1]==[51] (
call :runtest 52
) else if [%1]==[53] (
call :runtest 53
) else if [%1]==[54] (
call :runtest 54
) else (
call :runtest 51
)
Expand Down
8 changes: 6 additions & 2 deletions tests/run.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
#!/bin/bash -e

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

INC=/usr/include/lua$LUAV
if [ "$LUAV" == 5.4 ]; then
INC=/home/siffiejoe/.self/programs/lua$LUAV
else
INC=/usr/include/lua$LUAV
fi

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

0 comments on commit a7beaf4

Please sign in to comment.