瀏覽代碼

Fix -jvm...

Rudy Ges 1 年之前
父節點
當前提交
bb3c47ae65
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/compiler/compiler.ml

+ 2 - 2
src/compiler/compiler.ml

@@ -626,8 +626,8 @@ module HighLevel = struct
 				List.iter (fun l -> Hashtbl.add added_libs l ()) libs;
 				List.iter (fun l -> Hashtbl.add added_libs l ()) libs;
 				let lines = add_libs libs args server_api.cache has_display in
 				let lines = add_libs libs args server_api.cache has_display in
 				loop acc (lines @ args)
 				loop acc (lines @ args)
-			| ("--jvm") :: dir :: args ->
-				loop_lib "--jvm" dir "hxjava" acc args
+			| ("--jvm" | "-jvm" as arg) :: dir :: args ->
+				loop_lib arg dir "hxjava" acc args
 			| arg :: l ->
 			| arg :: l ->
 				match List.rev (ExtString.String.nsplit arg ".") with
 				match List.rev (ExtString.String.nsplit arg ".") with
 				| "hxml" :: _ :: _ when (match acc with "-cmd" :: _ | "--cmd" :: _ -> false | _ -> true) ->
 				| "hxml" :: _ :: _ when (match acc with "-cmd" :: _ | "--cmd" :: _ -> false | _ -> true) ->