This commit is contained in:
parent
390f12a17c
commit
d866d67a97
1 changed files with 8 additions and 1 deletions
|
|
@ -69,7 +69,14 @@ 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 = project.Build(argument);
|
std::tuple<Configuration&, BuildResult> config;
|
||||||
|
|
||||||
|
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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue