Răsfoiți Sursa

[compiler] don't eagerly process native libs in offline mode

That really just wastes time... I don't want to have too many distinctions between online/offline mode, but this in particular is an optimization to speed up native library access on subsequent compilation, which makes no sense in offline mode.
Simon Krajewski 3 ani în urmă
părinte
comite
383fd4b6e4
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      src/compiler/compiler.ml

+ 2 - 0
src/compiler/compiler.ml

@@ -719,6 +719,8 @@ let compile_ctx server_api comm ctx =
 	let run ctx =
 		server_api.before_anything ctx;
 		setup_common_context ctx;
+		(* TODO: deal with this a bit better *)
+		if not comm.is_server then Common.raw_define ctx.com "haxe.noNativeLibsCache";
 		compile_safe ctx (fun () ->
 			let actx = Args.parse_args ctx.com in
 			begin match actx.server_mode with