mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-04 02:20:53 +00:00
print the cpp command line if verbosity is high enough
This commit is contained in:
parent
3a14891266
commit
f1423cb0b3
2 changed files with 12 additions and 4 deletions
|
@ -222,10 +222,12 @@ preprocess_file (const char *filename)
|
||||||
}
|
}
|
||||||
if (!pid) {
|
if (!pid) {
|
||||||
// we're a child, check for abuse
|
// we're a child, check for abuse
|
||||||
//const char **a;
|
if (options.verbosity > 1) {
|
||||||
//for (a = cpp_argv; *a; a++)
|
const char **a;
|
||||||
// printf ("%s ", *a);
|
for (a = cpp_argv; *a; a++)
|
||||||
//puts("");
|
printf ("%s ", *a);
|
||||||
|
puts("");
|
||||||
|
}
|
||||||
execvp (cpp_argv[0], (char **)cpp_argv);
|
execvp (cpp_argv[0], (char **)cpp_argv);
|
||||||
perror (cpp_argv[0]);
|
perror (cpp_argv[0]);
|
||||||
exit (1);
|
exit (1);
|
||||||
|
|
|
@ -100,6 +100,7 @@ static const char *short_options =
|
||||||
"I:" // set includes
|
"I:" // set includes
|
||||||
"U:" // undefine
|
"U:" // undefine
|
||||||
"N:" // notice options
|
"N:" // notice options
|
||||||
|
"M::"
|
||||||
;
|
;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -342,6 +343,11 @@ DecodeArgs (int argc, char **argv)
|
||||||
free (opts);
|
free (opts);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'M':
|
||||||
|
add_cpp_def (nva ("-M%s", optarg));
|
||||||
|
if (strchr ("FQT", optarg[0]))
|
||||||
|
add_cpp_def (argv[optind++]);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
usage (1);
|
usage (1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue