fukiki commented on a change in pull request #3335:
URL: https://github.com/apache/apisix/pull/3335#discussion_r559945716



##########
File path: Makefile
##########
@@ -56,6 +57,9 @@ ifeq ($(LUAROCKS_VER),luarocks 3.)
 else
        luarocks install rockspec/apisix-master-0.rockspec --tree=deps 
--only-deps --local
 endif
+ifneq ($(LUA_VER),Lua 5.1)
+       sed -i '' -e "s|#!/usr/bin/env lua|#!/usr/bin/env 
$(LUAJIT_DIR)/bin/luajit|g" ./bin/apisix

Review comment:
       @membphis
   I don't understand very clearly. 
   Do you mean to create a new shell script to judge whether to use lua5.1 or 
luajit when running the CLI of APISIX?
   It could run the CLI of APISIX selectively: `lua ./bin/apisix ` or `luajit 
-e ./bin/apisix`?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to