From 77cb7b502f3a90c75e92df655f2d37132ee5627f Mon Sep 17 00:00:00 2001 From: Peter Kuemmel Date: Thu, 14 Jun 2012 09:52:39 +0200 Subject: [PATCH] Ninja: suppress startup logos Having Ninja's smart printing we are more allergic on unneeded tool output. --- Source/cmcldeps.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/cmcldeps.cxx b/Source/cmcldeps.cxx index 193a2e08b..a665f890d 100644 --- a/Source/cmcldeps.cxx +++ b/Source/cmcldeps.cxx @@ -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; }