Skip to content

Commit b02536a

Browse files
committed
Append LUA_PATH/LUA_CPATH to the _MAKE versions in the Makefile
1 parent 9963210 commit b02536a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
LUA ?= lua5.1
22
LUA_VERSION = $(shell $(LUA) -e 'print(_VERSION:match("%d%.%d"))')
33
LUAROCKS = luarocks-$(LUA_VERSION)
4-
LUA_PATH_MAKE = $(shell $(LUAROCKS) path --lr-path);./?.lua;./?/init.lua
5-
LUA_CPATH_MAKE = $(shell $(LUAROCKS) path --lr-cpath);./?.so
4+
LUA_PATH_MAKE = $(shell $(LUAROCKS) path --lr-path);./?.lua;./?/init.lua;$(LUA_PATH)
5+
LUA_CPATH_MAKE = $(shell $(LUAROCKS) path --lr-cpath);./?.so;$(LUA_CPATH)
66

77
.PHONY: test local compile compile_system watch lint count show
88

bin/moonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ if opts.watch then
163163
end
164164

165165
for fname in protected do
166-
local target = path_to_target(fname, opts.t)
166+
local target = path_to_target(fname, opts.output_to)
167167

168168
if opts.o then
169169
target = opts.o

0 commit comments

Comments
 (0)