Return error code if make fails

This commit is contained in:
Thraix committed 2019-03-01 12:03:53 +01:00
1 parent b47c99cc01
commit 3425daa792
2 files changed
+4 -6

No files matched your search

+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;
}