From 7f563a7e72166b50f0a418503fc3108135c1635b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Wed, 24 Nov 1999 16:28:42 -0800
Subject: [PATCH] removed stupid output from cl.exe

Rev: NT/tools/rntcl:1.5
---
 NT/tools/rntcl | 24 +++++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)

diff --git a/NT/tools/rntcl b/NT/tools/rntcl
index a55173f76f..4053f899e0 100755
--- a/NT/tools/rntcl
+++ b/NT/tools/rntcl
@@ -253,10 +253,28 @@ int main(int argc, string *argv)
 
   int ret;
   if(verbose && target!="-")
+  { 
     ret=do_cmd(cmd);
-  else
-    ret=silent_do_cmd(cmd);
-
+  }else{
+    int first_line=1;
+    // cl.exe echoes the file name of the file we are compiling
+    // first, we need to get rid of that to make configure behave 
+    ret=silent_do_cmd(cmd, lambda(string line) 
+		      {
+			if(first_line)
+			{
+			  array x=line/"\n";
+			  if(sizeof(x)>1)
+			  {
+			    line=x[1..]*"\n";
+			    first_line=0;
+			  }else{
+			    return;
+			  }
+			}
+			write(line);
+		      },1);
+  }
 
   if(ret)
   {
-- 
GitLab