aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-07-24 22:13:08 +0800
committerLi Jin <dragon-fly@qq.com>2022-07-24 22:13:08 +0800
commit303834e1b1e6cd9cae64b66c2ae44dcd7185238f (patch)
tree519f6a1debcc5791d35e06dc5cbb1ce22f9cfd31 /makefile
parenteb367126bf3a4f5b0e51ccef93b7c7136bea170e (diff)
downloadyuescript-303834e1b1e6cd9cae64b66c2ae44dcd7185238f.tar.gz
yuescript-303834e1b1e6cd9cae64b66c2ae44dcd7185238f.tar.bz2
yuescript-303834e1b1e6cd9cae64b66c2ae44dcd7185238f.zip
add option --target=5.1 to generate Lua 5.1 compatible codes. add const destructure. make import item const by default.
Diffstat (limited to 'makefile')
-rw-r--r--makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/makefile b/makefile
index bf5298a..913d70b 100644
--- a/makefile
+++ b/makefile
@@ -266,7 +266,7 @@ test: release
266 @mkdir -p $(TEST_OUTPUT) 266 @mkdir -p $(TEST_OUTPUT)
267 @echo "Compiling Yuescript codes..." 267 @echo "Compiling Yuescript codes..."
268 @$(START_TIME) 268 @$(START_TIME)
269 @./$(BIN_NAME) $(TEST_INPUT) -t $(TEST_OUTPUT) -tl_enabled 269 @./$(BIN_NAME) $(TEST_INPUT) -t $(TEST_OUTPUT) --tl_enabled
270 @./$(BIN_NAME) $(TEST_INPUT)/teal-lang.yue -o $(TEST_OUTPUT)/teal-lang.lua 270 @./$(BIN_NAME) $(TEST_INPUT)/teal-lang.yue -o $(TEST_OUTPUT)/teal-lang.lua
271 @echo -en "Compile time: " 271 @echo -en "Compile time: "
272 @$(END_TIME) 272 @$(END_TIME)
@@ -279,7 +279,7 @@ test: release
279gen: release 279gen: release
280 @echo "Compiling Yuescript codes..." 280 @echo "Compiling Yuescript codes..."
281 @$(START_TIME) 281 @$(START_TIME)
282 @./$(BIN_NAME) $(TEST_INPUT) -t $(GEN_OUTPUT) -tl_enabled 282 @./$(BIN_NAME) $(TEST_INPUT) -t $(GEN_OUTPUT) --tl_enabled
283 @./$(BIN_NAME) $(TEST_INPUT)/teal-lang.yue -o $(GEN_OUTPUT)/teal-lang.lua 283 @./$(BIN_NAME) $(TEST_INPUT)/teal-lang.yue -o $(GEN_OUTPUT)/teal-lang.lua
284 @echo -en "Compile time: " 284 @echo -en "Compile time: "
285 @$(END_TIME) 285 @$(END_TIME)