Ninja: suppress startup logos
Having Ninja's smart printing we are more allergic on unneeded tool output.
This commit is contained in:
parent
e2ffa14b99
commit
77cb7b502f
@ -694,20 +694,22 @@ int main() {
|
|||||||
fprintf(stderr, "\n\n");
|
fprintf(stderr, "\n\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
std::string showflag = " /showIncludes /nologo ";
|
||||||
if (lang != "RC") {
|
if (lang != "RC") {
|
||||||
return process(srcfile, dfile, objfile, prefix,
|
return process(srcfile, dfile, objfile, prefix,
|
||||||
binpath + " /showIncludes " + rest);
|
binpath + showflag + rest);
|
||||||
} else {
|
} else {
|
||||||
// "misuse" cl.exe to get headers from .rc files
|
// "misuse" cl.exe to get headers from .rc files
|
||||||
// rc: /fo x\CMakeFiles\x.dir\x.rc.res src\x\x.rc
|
// 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: /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 ");
|
replace(rest, "/fo" + objfile, "/out:" + objfile + ".dep.obj /Tc ");
|
||||||
|
|
||||||
int ret;
|
int ret;
|
||||||
ret = process(srcfile, dfile, objfile, prefix, cl, true);
|
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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user