Have '-MF -' write to stdout
If a dash ("-") is specified to -MF, write to stdout instead of a file
called "-"
This commit is contained in:
parent
24d35faed2
commit
64d29c942a
1 changed files with 5 additions and 2 deletions
|
|
@ -537,6 +537,9 @@ ST_FUNC void gen_makedeps(TCCState *s1, const char *target, const char *filename
|
||||||
if (s1->verbose)
|
if (s1->verbose)
|
||||||
printf("<- %s\n", filename);
|
printf("<- %s\n", filename);
|
||||||
|
|
||||||
|
if(!strcmp(filename, "-"))
|
||||||
|
depout = fdopen(1, "w");
|
||||||
|
else
|
||||||
/* XXX return err codes instead of error() ? */
|
/* XXX return err codes instead of error() ? */
|
||||||
depout = fopen(filename, "w");
|
depout = fopen(filename, "w");
|
||||||
if (!depout)
|
if (!depout)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue