Explorar o código

fix : com.debug defined

Nicolas Cannasse %!s(int64=17) %!d(string=hai) anos
pai
achega
b30503e63a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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