Update c.lua
This commit is contained in:
+5
-5
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user