fix
This commit is contained in:
parent
cbc7b45b8d
commit
72effdee9b
3 changed files with 18 additions and 11 deletions
|
|
@ -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 {} && ./{}", (projectPath/fs::path(binDir)).string(), project.name).c_str());
|
||||
system(std::format("cd {} && ./{}", (fs::path(projectPath).parent_path()/binDir).string(), project.name).c_str());
|
||||
} else {
|
||||
system(std::format("cd {} && lldb -o run {}", (projectPath/fs::path(binDir)).string(), project.name).c_str());
|
||||
system(std::format("cd {} && lldb -o run {}", (fs::path(projectPath).parent_path()/binDir).string(), project.name).c_str());
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue