Browse Source

[cs] Add -net-lib support for Compiler.add_native_lib

Cauê Waneck 11 năm trước cách đây
mục cha
commit
bd955eef11
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  1. 9 0
      interp.ml

+ 9 - 0
interp.ml

@@ -2505,6 +2505,15 @@ let macro_lib =
 				(match com.platform with
 				| Flash -> Genswf.add_swf_lib com file false
 				| Java -> Genjava.add_java_lib com file false
+				| Cs ->
+					let file, is_std = match ExtString.String.nsplit file "@" with
+						| [file] ->
+							file,false
+						| [file;"std"] ->
+							file,true
+						| _ -> raise Exit
+					in
+					Gencs.add_net_lib com file is_std
 				| _ -> failwith "Unsupported platform");
 				VNull
 			| _ ->