From 303834e1b1e6cd9cae64b66c2ae44dcd7185238f Mon Sep 17 00:00:00 2001 From: Li Jin Date: Sun, 24 Jul 2022 22:13:08 +0800 Subject: add option --target=5.1 to generate Lua 5.1 compatible codes. add const destructure. make import item const by default. --- makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index bf5298a..913d70b 100644 --- a/makefile +++ b/makefile @@ -266,7 +266,7 @@ test: release @mkdir -p $(TEST_OUTPUT) @echo "Compiling Yuescript codes..." @$(START_TIME) - @./$(BIN_NAME) $(TEST_INPUT) -t $(TEST_OUTPUT) -tl_enabled + @./$(BIN_NAME) $(TEST_INPUT) -t $(TEST_OUTPUT) --tl_enabled @./$(BIN_NAME) $(TEST_INPUT)/teal-lang.yue -o $(TEST_OUTPUT)/teal-lang.lua @echo -en "Compile time: " @$(END_TIME) @@ -279,7 +279,7 @@ test: release gen: release @echo "Compiling Yuescript codes..." @$(START_TIME) - @./$(BIN_NAME) $(TEST_INPUT) -t $(GEN_OUTPUT) -tl_enabled + @./$(BIN_NAME) $(TEST_INPUT) -t $(GEN_OUTPUT) --tl_enabled @./$(BIN_NAME) $(TEST_INPUT)/teal-lang.yue -o $(GEN_OUTPUT)/teal-lang.lua @echo -en "Compile time: " @$(END_TIME) -- cgit v1.2.3-55-g6feb