|
@@ -115,7 +115,7 @@ let rec read_type_path com p =
|
|
| _ -> p
|
|
| _ -> p
|
|
) in
|
|
) in
|
|
List.iter (fun path ->
|
|
List.iter (fun path ->
|
|
- let dir = path ^ String.concat "/" p in
|
|
|
|
|
|
+ let dir = path ^ String.concat "/" p in
|
|
let r = (try Sys.readdir dir with _ -> [||]) in
|
|
let r = (try Sys.readdir dir with _ -> [||]) in
|
|
Array.iter (fun f ->
|
|
Array.iter (fun f ->
|
|
if (try (Unix.stat (dir ^ "/" ^ f)).Unix.st_kind = Unix.S_DIR with _ -> false) then begin
|
|
if (try (Unix.stat (dir ^ "/" ^ f)).Unix.st_kind = Unix.S_DIR with _ -> false) then begin
|
|
@@ -124,7 +124,7 @@ let rec read_type_path com p =
|
|
match read_type_path com [f] with
|
|
match read_type_path com [f] with
|
|
| [] , [] -> ()
|
|
| [] , [] -> ()
|
|
| _ ->
|
|
| _ ->
|
|
- try
|
|
|
|
|
|
+ try
|
|
match PMap.find f com.package_rules with
|
|
match PMap.find f com.package_rules with
|
|
| Forbidden -> ()
|
|
| Forbidden -> ()
|
|
| Remap f -> packages := f :: !packages
|
|
| Remap f -> packages := f :: !packages
|
|
@@ -361,7 +361,7 @@ try
|
|
) lines) @ !excludes;
|
|
) lines) @ !excludes;
|
|
),"<filename> : don't generate code for classes listed in this file");
|
|
),"<filename> : don't generate code for classes listed in this file");
|
|
("-prompt", Arg.Unit (fun() -> prompt := true),": prompt on error");
|
|
("-prompt", Arg.Unit (fun() -> prompt := true),": prompt on error");
|
|
- ("-cmd", Arg.String (fun cmd ->
|
|
|
|
|
|
+ ("-cmd", Arg.String (fun cmd ->
|
|
cmds := expand_env cmd :: !cmds
|
|
cmds := expand_env cmd :: !cmds
|
|
),": run the specified command after successful compilation");
|
|
),": run the specified command after successful compilation");
|
|
("--flash-strict", define "flash_strict", ": more type strict flash API");
|
|
("--flash-strict", define "flash_strict", ": more type strict flash API");
|
|
@@ -393,9 +393,9 @@ try
|
|
};
|
|
};
|
|
),": display code tips");
|
|
),": display code tips");
|
|
("--no-output", Arg.Unit (fun() -> no_output := true),": compiles but does not generate any file");
|
|
("--no-output", Arg.Unit (fun() -> no_output := true),": compiles but does not generate any file");
|
|
- ("--times", Arg.Unit (fun() -> measure_times := true),": mesure compilation times");
|
|
|
|
|
|
+ ("--times", Arg.Unit (fun() -> measure_times := true),": measure compilation times");
|
|
("--no-inline", define "no_inline", ": disable inlining");
|
|
("--no-inline", define "no_inline", ": disable inlining");
|
|
- ("--no-opt", define "no_opt", ": disable code optimizations");
|
|
|
|
|
|
+ ("--no-opt", define "no_opt", ": disable code optimizations");
|
|
("--php-front",Arg.String (fun f ->
|
|
("--php-front",Arg.String (fun f ->
|
|
if com.php_front <> None then raise (Arg.Bad "Multiple --php-front");
|
|
if com.php_front <> None then raise (Arg.Bad "Multiple --php-front");
|
|
com.php_front <- Some f;
|
|
com.php_front <- Some f;
|