forked from mirror/ledisdb
update lua build
This commit is contained in:
parent
b9ea592026
commit
0cf898bf27
2
Makefile
2
Makefile
|
@ -1,6 +1,6 @@
|
||||||
INSTALL_PATH ?= $(CURDIR)
|
INSTALL_PATH ?= $(CURDIR)
|
||||||
|
|
||||||
$(shell ./bootstrap.sh)
|
$(shell ./bootstrap.sh >> /dev/null 2>&1)
|
||||||
|
|
||||||
$(shell ./tools/build_config.sh build_config.mk $INSTALL_PATH)
|
$(shell ./tools/build_config.sh build_config.mk $INSTALL_PATH)
|
||||||
|
|
||||||
|
|
2
dev.sh
2
dev.sh
|
@ -76,7 +76,7 @@ fi
|
||||||
|
|
||||||
#check lua
|
#check lua
|
||||||
CHECK_LUA_FILE="$LEDISTOP/tools/check_lua.go"
|
CHECK_LUA_FILE="$LEDISTOP/tools/check_lua.go"
|
||||||
go run $CHECK_LUA_FILE 2>/dev/null
|
go run $CHECK_LUA_FILE >> /dev/null 2>&1
|
||||||
if [ "$?" = 0 ]; then
|
if [ "$?" = 0 ]; then
|
||||||
GO_BUILD_TAGS="$GO_BUILD_TAGS lua"
|
GO_BUILD_TAGS="$GO_BUILD_TAGS lua"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build ignore
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import "github.com/siddontang/golua/lua"
|
import "github.com/siddontang/golua/lua"
|
||||||
|
|
Loading…
Reference in New Issue