浏览代码

only enable macro interp cache when using compilation server

Nicolas Cannasse 12 年之前
父节点
当前提交
2aa32c0b45
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      main.ml

+ 1 - 0
main.ml

@@ -455,6 +455,7 @@ and wait_loop boot_com host port =
 		c_modules = Hashtbl.create 0;
 	} in
 	global_cache := Some cache;
+	Typer.macro_enable_cache := true;
 	Typeload.parse_hook := (fun com2 file p ->
 		let sign = get_signature com2 in
 		let ffile = Common.unique_full_path file in