deadlock fix

This commit is contained in:
Jorijn van der Graaf 2025-11-01 11:53:09 +01:00
commit ca25c838f5
3 changed files with 23 additions and 20 deletions

View file

@ -70,9 +70,9 @@ int main(int argc, char* argv[]) {
binDir = std::format("{}/{}", project.binDir.string(), config.name);
}
if(config.debug) {
system(std::format("cd {} && ./{}", (fs::path(projectPath).parent_path()/binDir).string(), project.name).c_str());
} else {
system(std::format("cd {} && lldb -o run {}", (fs::path(projectPath).parent_path()/binDir).string(), project.name).c_str());
} else {
system(std::format("cd {} && ./{}", (fs::path(projectPath).parent_path()/binDir).string(), project.name).c_str());
}
return 0;
}