Commit ff4ca4c1 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2367 from take-cheeze/ignore_outfile

Ignore outfile check when `-c`(check syntax only) flag is enabled.
parents d3fda42e 2f614b1a
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment