additional file fix

This commit is contained in:
Jorijn van der Graaf 2025-11-09 20:08:23 +01:00
commit 698665215b
9 changed files with 64 additions and 88 deletions

View file

@ -71,12 +71,7 @@ int main(int argc, char* argv[]) {
if(command == "build") {
Configuration& config = project.Build(argument);
if(run){
std::string binDir;
if(project.binDir.empty()) {
binDir = std::format("bin/{}", config.name);
} else {
binDir = std::format("{}/{}", project.binDir.string(), config.name);
}
std::string 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());
//system(std::format("cd {} && lldb -o run {}", (fs::path(projectPath).parent_path()/binDir).string(), project.name).c_str());