Commit 77cb7b50 authored by Peter Kuemmel's avatar Peter Kuemmel

Ninja: suppress startup logos

Having Ninja's smart printing we are more allergic on
unneeded tool output.
parent e2ffa14b
......@@ -694,20 +694,22 @@ int main() {
fprintf(stderr, "\n\n");
#endif
std::string showflag = " /showIncludes /nologo ";
if (lang != "RC") {
return process(srcfile, dfile, objfile, prefix,
binpath + " /showIncludes " + rest);
binpath + showflag + rest);
} else {
// "misuse" cl.exe to get headers from .rc files
// rc: /fo x\CMakeFiles\x.dir\x.rc.res src\x\x.rc
// cl: /out:x\CMakeFiles\x.dir\x.rc.res.dep.obj /Tc src\x\x.rc
cl = "\"" + cl + "\" /P /DRC_INVOKED /showIncludes " +
cl = "\"" + cl + "\" /P /DRC_INVOKED " + showflag +
replace(rest, "/fo" + objfile, "/out:" + objfile + ".dep.obj /Tc ");
int ret;
ret = process(srcfile, dfile, objfile, prefix, cl, true);
ret = process(srcfile, "" , objfile, prefix, binpath + " " + rest);
ret = process(srcfile, "" , objfile, prefix,
binpath + " /nologo " + rest);
return ret;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment