This commit is contained in:
parent
f0548165b9
commit
0efce16d3c
1 changed files with 22 additions and 25 deletions
|
|
@ -69,14 +69,8 @@ int main(int argc, char* argv[]) {
|
||||||
Project project(std::move(projectPath));
|
Project project(std::move(projectPath));
|
||||||
|
|
||||||
if(command == "build") {
|
if(command == "build") {
|
||||||
std::tuple<Configuration&, BuildResult> config;
|
std::tuple<Configuration&, BuildResult> config = project.Build(argument);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
config = project.Build(argument);
|
|
||||||
} catch(std::exception& e) {
|
|
||||||
std::cout << e.what() << std::endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
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);
|
||||||
|
|
@ -100,6 +94,9 @@ int main(int argc, char* argv[]) {
|
||||||
std::cout << std::get<1>(config).errors << std::endl;
|
std::cout << std::get<1>(config).errors << std::endl;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
} catch(std::exception& e) {
|
||||||
|
std::cout << e.what() << std::endl;
|
||||||
|
}
|
||||||
} else if(command == "test") {
|
} else if(command == "test") {
|
||||||
bool anyFailed = false;
|
bool anyFailed = false;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue