Fix competitest so that sanitizers works again

This commit is contained in:
Segcolt 2026-01-10 20:36:38 -03:00
parent c2ae5fbf3d
commit a999be76f2

View File

@ -21,8 +21,8 @@ return {
evaluate_template_modifiers = true, evaluate_template_modifiers = true,
received_problems_prompt_path = false, received_problems_prompt_path = false,
compile_command = { compile_command = {
c = { exec = "gcc", args = { "-O0", "-Wall", "-g", "-DDEBUG", "-fsanitize=address,undefined", "-std=c23", "$(FNAME)", "-o", "$(FNOEXT).out", "-lm" } }, c = { exec = "gcc", args = { "-O0", "-Wall", "-ggdb3", "-DDEBUG", "-fsanitize=address,undefined", "$(FNAME)", "-o", "$(FNOEXT).out", "-lm" } },
cpp = { exec = "g++", args = { "-O0", "-Wall", "-g", "-DDEBUG", "-fsanitize=address,undefined", "-std=c++20", "$(FNAME)", "-o", "$(FNOEXT).out" } }, cpp = { exec = "g++", args = { "-O0", "-Wall", "-ggdb3", "-DDEBUG", "-fsanitize=address,undefined", "-D__OPTIMIZE__", "$(FNAME)", "-o", "$(FNOEXT).out" } },
}, },
run_command = { run_command = {
c = { exec = "./$(FNOEXT).out" }, c = { exec = "./$(FNOEXT).out" },