summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortake_cheeze <[email protected]>2014-06-06 19:55:04 +0900
committertake_cheeze <[email protected]>2014-06-06 19:55:04 +0900
commit2f614b1a5c81a707959b237500ad2da6d91f1c6f (patch)
tree4e10ae1833bb1753281c23479bef17db9045eb02
parentd3fda42eb62b4132eb91fb75acc28d3218415c8b (diff)
downloadmruby-2f614b1a5c81a707959b237500ad2da6d91f1c6f.tar.gz
mruby-2f614b1a5c81a707959b237500ad2da6d91f1c6f.zip
Ignore outfile check when `-c`(check syntax only) flag is enabled.
-rw-r--r--tools/mrbc/mrbc.c2
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);
}