From a999be76f20bdaa6a18629cfb02ffe3f7105a6cc Mon Sep 17 00:00:00 2001 From: Segcolt Date: Sat, 10 Jan 2026 20:36:38 -0300 Subject: [PATCH] Fix competitest so that sanitizers works again --- lua/plugins/competitest.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/plugins/competitest.lua b/lua/plugins/competitest.lua index eefc1ed..7549131 100644 --- a/lua/plugins/competitest.lua +++ b/lua/plugins/competitest.lua @@ -21,8 +21,8 @@ return { evaluate_template_modifiers = true, received_problems_prompt_path = false, compile_command = { - c = { exec = "gcc", args = { "-O0", "-Wall", "-g", "-DDEBUG", "-fsanitize=address,undefined", "-std=c23", "$(FNAME)", "-o", "$(FNOEXT).out", "-lm" } }, - cpp = { exec = "g++", args = { "-O0", "-Wall", "-g", "-DDEBUG", "-fsanitize=address,undefined", "-std=c++20", "$(FNAME)", "-o", "$(FNOEXT).out" } }, + c = { exec = "gcc", args = { "-O0", "-Wall", "-ggdb3", "-DDEBUG", "-fsanitize=address,undefined", "$(FNAME)", "-o", "$(FNOEXT).out", "-lm" } }, + cpp = { exec = "g++", args = { "-O0", "-Wall", "-ggdb3", "-DDEBUG", "-fsanitize=address,undefined", "-D__OPTIMIZE__", "$(FNAME)", "-o", "$(FNOEXT).out" } }, }, run_command = { c = { exec = "./$(FNOEXT).out" },