diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-06-06 21:32:35 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-06-06 21:32:35 +0900 |
| commit | ff4ca4c195144b5ac21ffd5434f2f955471ca8e7 (patch) | |
| tree | 4e10ae1833bb1753281c23479bef17db9045eb02 | |
| parent | d3fda42eb62b4132eb91fb75acc28d3218415c8b (diff) | |
| parent | 2f614b1a5c81a707959b237500ad2da6d91f1c6f (diff) | |
| download | mruby-ff4ca4c195144b5ac21ffd5434f2f955471ca8e7.tar.gz mruby-ff4ca4c195144b5ac21ffd5434f2f955471ca8e7.zip | |
Merge pull request #2367 from take-cheeze/ignore_outfile
Ignore outfile check when `-c`(check syntax only) flag is enabled.
| -rw-r--r-- | tools/mrbc/mrbc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mrbc/mrbc.c b/tools/mrbc/mrbc.c index e5858e54a..52e762a50 100644 --- a/tools/mrbc/mrbc.c +++ b/tools/mrbc/mrbc.c @@ -270,7 +270,7 @@ main(int argc, char **argv) fprintf(stderr, "%s: no program file given\n", args.prog); return EXIT_FAILURE; } - if (args.outfile == NULL) { + if (args.outfile == NULL && !args.check_syntax) { if (n + 1 == argc) { args.outfile = get_outfilename(mrb, argv[n], args.initname ? C_EXT : RITEBIN_EXT); } |
