This commit is contained in:
parent
a6354db5fc
commit
48417a4c7c
1 changed files with 14 additions and 5 deletions
|
|
@ -72,12 +72,21 @@ int main(int argc, char* argv[]) {
|
||||||
std::tuple<Configuration&, BuildResult> config = project.Build(argument);
|
std::tuple<Configuration&, BuildResult> config = project.Build(argument);
|
||||||
if(std::get<1>(config).errors.empty()) {
|
if(std::get<1>(config).errors.empty()) {
|
||||||
if(run){
|
if(run){
|
||||||
std::string binDir = std::format("{}/{}", project.binDir.string(), std::get<0>(config).name);
|
std::string binDir = std::format("{}/{}", project.binDir.string(), std::get<0>(config).name);
|
||||||
if(std::get<0>(config).debug) {
|
if(std::get<0>(config).target == "x86_64-w64-mingw32") {
|
||||||
system(std::format("cd {} && ./{}", (project.path.parent_path()/binDir).string(), project.name).c_str());
|
if(std::get<0>(config).debug) {
|
||||||
//system(std::format("cd {} && lldb -o run {}", (fs::path(projectPath).parent_path()/binDir).string(), project.name).c_str());
|
system(std::format("cd {} && wine ./{}.exe", (project.path.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());
|
||||||
|
} else {
|
||||||
|
system(std::format("cd {} && wine ./{}.exe", (project.path.parent_path()/binDir).string(), project.name).c_str());
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
system(std::format("cd {} && ./{}", (project.path.parent_path()/binDir).string(), project.name).c_str());
|
if(std::get<0>(config).debug) {
|
||||||
|
system(std::format("cd {} && ./{}", (project.path.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());
|
||||||
|
} else {
|
||||||
|
system(std::format("cd {} && ./{}", (project.path.parent_path()/binDir).string(), project.name).c_str());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue