From d703454f5fe3000f191af591e447f56bfc25cee0 Mon Sep 17 00:00:00 2001 From: eidheim Date: Tue, 16 Aug 2022 09:04:41 +0200 Subject: [PATCH] C/C++: create build folder, if not already created, prior to getting run arguments in order to extract executable from build --- src/project.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/project.cpp b/src/project.cpp index edf0d4b..ed780fd 100644 --- a/src/project.cpp +++ b/src/project.cpp @@ -279,7 +279,7 @@ void Project::Base::debug_start(const std::string &command, const boost::filesys std::pair Project::LLDB::debug_get_run_arguments() { auto debug_build_path = build->get_debug_path(); auto default_build_path = build->get_default_path(); - if(debug_build_path.empty() || default_build_path.empty()) + if(debug_build_path.empty() || default_build_path.empty() || !build->update_default()) return {"", ""}; auto project_path = build->project_path.string(); @@ -687,7 +687,7 @@ void Project::LLDB::debug_write(const std::string &buffer) { std::pair Project::Clang::get_run_arguments() { auto build_path = build->get_default_path(); - if(build_path.empty()) + if(build_path.empty() || !build->update_default()) return {"", ""}; auto project_path = build->project_path.string();