浏览代码

fix : com.debug defined

Nicolas Cannasse 17 年之前
父节点
当前提交
b30503e63a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      main.ml

+ 1 - 1
main.ml

@@ -303,7 +303,7 @@ try
 			) lines) @ !excludes;
 		),"<filename> : don't generate code for classes listed in this file");
 		("-v",Arg.Unit (fun () -> com.verbose <- true),": turn on verbose mode");
-		("-debug", define "debug", ": add debug informations to the compiled code");
+		("-debug", Arg.Unit (fun() -> Common.define com "debug"; com.debug <- true), ": add debug informations to the compiled code");
 		("-prompt", Arg.Unit (fun() -> prompt := true),": prompt on error");
 		("-cmd", Arg.String (fun cmd ->
 			cmds := cmd :: !cmds