From 8de4d282386d5d8cb324b7902da4b6216006f931 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 2 Aug 2002 19:09:02 +0000 Subject: [PATCH] print cpp invocation for win32 too --- tools/qfcc/source/cpp.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/qfcc/source/cpp.c b/tools/qfcc/source/cpp.c index c2be4c71e..a67c41765 100644 --- a/tools/qfcc/source/cpp.c +++ b/tools/qfcc/source/cpp.c @@ -201,7 +201,16 @@ preprocess_file (const char *filename) } { - int status = spawnvp (_P_WAIT, cpp_argv[0], (char **)cpp_argv); + int status; + + if (options.verbosity > 1) { + const char **a; + for (a = cpp_argv; *a; a++) + printf ("%s ", *a); + puts(""); + } + + status = spawnvp (_P_WAIT, cpp_argv[0], (char **)cpp_argv); if (status) { fprintf (stderr, "%s: cpp returned error code %d\n",