提交 64d29c94 编辑于 作者: Arthur Williams's avatar Arthur Williams
浏览文件

Have '-MF -' write to stdout

If a dash ("-") is specified to -MF, write to stdout instead of a file
called "-"
上级 24d35fae
......@@ -537,8 +537,11 @@ ST_FUNC void gen_makedeps(TCCState *s1, const char *target, const char *filename
if (s1->verbose)
printf("<- %s\n", filename);
/* XXX return err codes instead of error() ? */
depout = fopen(filename, "w");
if(!strcmp(filename, "-"))
depout = fdopen(1, "w");
else
/* XXX return err codes instead of error() ? */
depout = fopen(filename, "w");
if (!depout)
tcc_error("could not open '%s'", filename);
fprintf(depout, "%s:", target);
......
Supports Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册