Update c.lua

This commit is contained in:
DarthMooMancer
2025-03-10 13:28:34 -04:00
parent b9571902f9
commit d22889b008
+3 -3
View File
@@ -235,10 +235,10 @@ function M.build()
return return
end end
local project_root = vim.fn.expand(M.config.project_root) .. "/" .. project_name local build_project_root = vim.fn.expand(M.config.project_root) .. "/" .. project_name .. "/build"
print("Project Root: " .. project_root)
local into_build = "cd " .. project_root .. "/build" local into_build = "cd " .. build_project_root
print("Project Root: " .. build_project_root)
local into_build_status = vim.fn.system(into_build) local into_build_status = vim.fn.system(into_build)
if vim.v.shell_error ~= 0 then if vim.v.shell_error ~= 0 then
print("Could not go into build dir:\n" .. into_build_status) print("Could not go into build dir:\n" .. into_build_status)