浏览代码

[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 年之前
父节点
当前提交
383fd4b6e4
共有 1 个文件被更改,包括 2 次插入0 次删除
  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