summaryrefslogtreecommitdiffhomepage
path: root/tools/mrbc
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-06-07 16:47:03 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-06-07 16:47:03 +0900
commit24b02955d362fcb7962ccf874158550c1f67aaa2 (patch)
treed0608206e9bcb74d5848ffd29c07747c26c9071c /tools/mrbc
parentd3fda42eb62b4132eb91fb75acc28d3218415c8b (diff)
parent9709fe79a3a75eefc92329cc0b74e159ff31525f (diff)
downloadmruby-24b02955d362fcb7962ccf874158550c1f67aaa2.tar.gz
mruby-24b02955d362fcb7962ccf874158550c1f67aaa2.zip
git push origin masterMerge branch 'suzukaze-add-string.clear2'
Diffstat (limited to 'tools/mrbc')
-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);
}