Return error code if make fails

This commit is contained in:
Thraix
2019-03-01 12:03:53 +01:00
parent b47c99cc01
commit 3425daa792
2 changed files with 4 additions and 6 deletions
+3 -5
View File
@@ -105,12 +105,10 @@ int main(int argc, char** argv)
if(argv[i][0] != '-')
{
std::string make = std::string("make ") + argv[i];
system(make.c_str());
return 0;
return system(make.c_str()) == 0 ? 0 : 1;
}
}
system("make");
return 0;
;
return system("make") == 0 ? 0 : 1;
}