Skip to content

Commit 2f8a4d2

Browse files
committed
Fix make with luarocks not working
1 parent 4d0e4f1 commit 2f8a4d2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

spec/util.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,10 @@ function util.assert_line_by_line(s1, s2)
182182
end
183183

184184
local vars_prefix = { util.os_set("LUA_PATH", util.os_path(package.path)) .. util.os_join }
185+
table.insert(vars_prefix, util.os_set("LUA_CPATH", util.os_path(package.cpath)) .. util.os_join)
185186
for i = 1, 4 do
186187
table.insert(vars_prefix, util.os_set("LUA_PATH_5_" .. tostring(i), util.os_path(package.path)) .. util.os_join)
188+
table.insert(vars_prefix, util.os_set("LUA_CPATH_5_" .. tostring(i), util.os_path(package.cpath)) .. util.os_join)
187189
end
188190

189191
local first_arg = 0

tl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ do
1010
-- get the whole API into package.loaded
1111
require("teal")
1212

13+
require("tlcli.main")({...})
14+
1315
-- but otherwise don't pollute package.path inadvertedly
1416
package.path = save_package_path
1517
end
16-
17-
require("tlcli.main")({...})

0 commit comments

Comments
 (0)