Skip to content

Commit

Permalink
Fix lua build script
Browse files Browse the repository at this point in the history
  • Loading branch information
jangko committed Dec 4, 2023
1 parent 3b12a20 commit 0a38323
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ jobs:
mkdir -p "$EXTPATH"
curl -L https://www.lua.org/ftp/lua-5.3.5.tar.gz -o "$EXTPATH/lua_source.tar.gz"
tar xfz "$EXTPATH/lua_source.tar.gz" -C "$EXTPATH"
mv "$EXTPATH/lua-5.3.5" "$EXTPATH/lua"
mv "$EXTPATH/lua-5.3.5" lua
cd nimLUA
nim e scripts/build_static_lib.nims
cd ..
Expand Down
4 changes: 3 additions & 1 deletion nimLUA.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ proc test(env, path: string) =

if not dirExists "build":
mkDir "build"
exec "nim " & lang & " " & env &
let cmd = "nim " & lang & " " & env &
" --outdir:build -r --hints:off --warnings:off " &
" -d:lua_static_lib --passL:\"-Lexternal -llua " & libm & " \" " & path
echo cmd
exec cmd

task test, "Run all tests":
test "-d:nimDebugDlOpen", "tests/test_features"
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.nims
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ proc toString(names: seq[string]): string =
result.add c
result.add " "

let src = getCFiles("external" / "lua" / "src")
let src = getCFiles("lua" / "src")
var objs: seq[string] = @[]

for x in src:
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_static_lib.nims
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ proc toString(names: seq[string]): string =
result.add " "

proc objList(): string =
let src = getCFiles("external" / "lua" / "src")
let src = getCFiles("lua" / "src")
var objs: seq[string] = @[]

for x in src:
Expand Down

0 comments on commit 0a38323

Please sign in to comment.