瀏覽代碼

never cache modules in display mode

Nicolas Cannasse 13 年之前
父節點
當前提交
0bc69e07e2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      main.ml

+ 1 - 1
main.ml

@@ -520,7 +520,7 @@ and wait_loop boot_com host port =
 				read_loop()
 		in
 		let rec cache_context com =
-			if not com.dead_code_elimination then begin
+			if not com.dead_code_elimination && not com.display then begin
 				List.iter cache_module com.modules;
 				if verbose then print_endline ("Cached " ^ string_of_int (List.length com.modules) ^ " modules");
 			end;