diff options
| author | Li Jin <dragon-fly@qq.com> | 2023-07-28 11:53:04 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2023-07-28 11:53:04 +0800 |
| commit | 5497775534d20ba06ab9c13bc4db1c5bee877513 (patch) | |
| tree | be68d03cf0928efca4a579125e4ba15ef3ab9325 /makefile | |
| parent | f415df9617d251abd802257d9750618ccc71ca93 (diff) | |
| download | yuescript-5497775534d20ba06ab9c13bc4db1c5bee877513.tar.gz yuescript-5497775534d20ba06ab9c13bc4db1c5bee877513.tar.bz2 yuescript-5497775534d20ba06ab9c13bc4db1c5bee877513.zip | |
fix xpcall usages in different Lua version.
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -284,8 +284,9 @@ test: debug | |||
| 284 | @echo "Compiling Yuescript codes..." | 284 | @echo "Compiling Yuescript codes..." |
| 285 | @$(START_TIME) | 285 | @$(START_TIME) |
| 286 | @./$(BIN_NAME) $(TEST_INPUT) -t $(TEST_OUTPUT) --tl_enabled | 286 | @./$(BIN_NAME) $(TEST_INPUT) -t $(TEST_OUTPUT) --tl_enabled |
| 287 | @./$(BIN_NAME) $(TEST_INPUT)/teal-lang.yue -o $(TEST_OUTPUT)/teal-lang.lua | 287 | @./$(BIN_NAME) $(TEST_INPUT)/teal_lang.yue -o $(TEST_OUTPUT)/teal_lang.lua |
| 288 | @./$(BIN_NAME) $(TEST_INPUT)/loops.yue -o $(TEST_OUTPUT)/5.1/loops.lua --target=5.1 | 288 | @./$(BIN_NAME) $(TEST_INPUT)/loops.yue -o $(TEST_OUTPUT)/5.1/loops.lua --target=5.1 |
| 289 | @./$(BIN_NAME) $(TEST_INPUT)/try_catch.yue -o $(TEST_OUTPUT)/5.1/try_catch.lua --target=5.1 | ||
| 289 | @./$(BIN_NAME) $(TEST_INPUT)/test/loops_spec.yue -o $(TEST_OUTPUT)/5.1/test/loops_spec.lua --target=5.1 | 290 | @./$(BIN_NAME) $(TEST_INPUT)/test/loops_spec.yue -o $(TEST_OUTPUT)/5.1/test/loops_spec.lua --target=5.1 |
| 290 | @echo -en "Compile time: " | 291 | @echo -en "Compile time: " |
| 291 | @$(END_TIME) | 292 | @$(END_TIME) |
| @@ -299,8 +300,9 @@ gen: release | |||
| 299 | @echo "Compiling Yuescript codes..." | 300 | @echo "Compiling Yuescript codes..." |
| 300 | @$(START_TIME) | 301 | @$(START_TIME) |
| 301 | @./$(BIN_NAME) $(TEST_INPUT) -t $(GEN_OUTPUT) --tl_enabled | 302 | @./$(BIN_NAME) $(TEST_INPUT) -t $(GEN_OUTPUT) --tl_enabled |
| 302 | @./$(BIN_NAME) $(TEST_INPUT)/teal-lang.yue -o $(GEN_OUTPUT)/teal-lang.lua | 303 | @./$(BIN_NAME) $(TEST_INPUT)/teal_lang.yue -o $(GEN_OUTPUT)/teal_lang.lua |
| 303 | @./$(BIN_NAME) $(TEST_INPUT)/loops.yue -o $(GEN_OUTPUT)/5.1/loops.lua --target=5.1 | 304 | @./$(BIN_NAME) $(TEST_INPUT)/loops.yue -o $(GEN_OUTPUT)/5.1/loops.lua --target=5.1 |
| 305 | @./$(BIN_NAME) $(TEST_INPUT)/try_catch.yue -o $(TEST_OUTPUT)/5.1/try_catch.lua --target=5.1 | ||
| 304 | @./$(BIN_NAME) $(TEST_INPUT)/test/loops_spec.yue -o $(GEN_OUTPUT)/5.1/test/loops_spec.lua --target=5.1 | 306 | @./$(BIN_NAME) $(TEST_INPUT)/test/loops_spec.yue -o $(GEN_OUTPUT)/5.1/test/loops_spec.lua --target=5.1 |
| 305 | @echo -en "Compile time: " | 307 | @echo -en "Compile time: " |
| 306 | @$(END_TIME) | 308 | @$(END_TIME) |
