Update c.lua

This commit is contained in:
DarthMooMancer
2025-03-10 13:05:35 -04:00
parent 16d4fe60ab
commit 1c2794fdff
+5 -5
View File
@@ -243,11 +243,11 @@ function M.build()
print("Could not go into build dir:\n" .. into_build_status) print("Could not go into build dir:\n" .. into_build_status)
end end
local project_root_build = current_dir:match("(.*)/build") -- local project_root_build = current_dir:match("(.*)/build")
if not project_root_build then -- if not project_root_build then
print("Error: Must be inside the 'build' directory.") -- print("Error: Must be inside the 'build' directory.")
return -- return
end -- end
local compile_command = "cmake .. && make" local compile_command = "cmake .. && make"
local compile_status = vim.fn.system(compile_command) local compile_status = vim.fn.system(compile_command)