mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-30 00:28:42 +08:00
Treat the - output as stdout.
This commit is contained in:
parent
3b9c3fd186
commit
93a4ddfa63
2
tcc.c
2
tcc.c
@ -290,7 +290,7 @@ redo:
|
|||||||
tcc_error("no input files\n");
|
tcc_error("no input files\n");
|
||||||
|
|
||||||
if (s->output_type == TCC_OUTPUT_PREPROCESS) {
|
if (s->output_type == TCC_OUTPUT_PREPROCESS) {
|
||||||
if (s->outfile) {
|
if (s->outfile && 0!=strcmp("-",s->outfile)) {
|
||||||
ppfp = fopen(s->outfile, "w");
|
ppfp = fopen(s->outfile, "w");
|
||||||
if (!ppfp)
|
if (!ppfp)
|
||||||
tcc_error("could not write '%s'", s->outfile);
|
tcc_error("could not write '%s'", s->outfile);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user