编译器资源限制放入配置文件中
This commit is contained in:
@@ -15,8 +15,8 @@ def compile_(language_item, src_path, exe_path, judge_base_path, compile_spj=Fal
|
||||
compile_result = judger.run(path=compiler,
|
||||
in_file="/dev/null",
|
||||
out_file=compiler_output_file,
|
||||
max_cpu_time=2000,
|
||||
max_memory=256 * 1024 * 1024,
|
||||
max_cpu_time=language_item["compile_max_cpu_time"],
|
||||
max_memory=language_item["compile_max_memory"],
|
||||
args=compile_args,
|
||||
env=["PATH=" + os.environ["PATH"]],
|
||||
use_sandbox=False,
|
||||
|
||||
Reference in New Issue
Block a user