mirror of
https://github.com/TinyCC/tinycc.git
synced 2025-12-05 15:15:47 +00:00
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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user