docs: full toml sample (#20) #27

Merged
张泊明518370910136 merged 7 commits from full-toml-sample into master 2025-07-08 04:38:47 +08:00
Showing only changes of commit bb07b0e695 - Show all commits

View File

@ -47,8 +47,10 @@ files.import-map = { "tools/Makefile" = "h7/Makefile" }
# stages automatically
files.export = [ "yes.txt" ]
# whether to copy all files from the current working directory from host (i.e. the whole repo)
# you can set it as false if you are in the run stage of a compiled language, as the binary is all you need
copy-in-cwd = true # default: true
bomingzh marked this conversation as resolved Outdated

maybe we should should add a warning NOT to change/setup those values unless stricly necessary?

maybe we should should add a warning NOT to change/setup those values unless stricly necessary?

In theory, in the run stage of a compiled language, it should be set as false to improve performance. As the binary is exported in the previous stage, it will be automatically imported here. Should we remind TAs for this?

In theory, in the run stage of a compiled language, it should be set as false to improve performance. As the binary is exported in the previous stage, it will be automatically imported here. Should we remind TAs for this?

yes, agree.

but in fact my comment was about adding a comment above the options below (to change time/ram/etc.)

yes, agree. but in fact my comment was about adding a comment above the options below (to change time/ram/etc.)

done.

done.
# normally, you DO NOT need to change these default limits
limit.cpu = "1s" # CPU time limit, default: "1s"
limit.mem = "256m" # memory limit, default: "256m"
limit.time = "2s" # wall-clock time limit, if not set, will be 2x CPU time