Explorar el Código

clear files cache before generation

Nicolas Cannasse hace 9 años
padre
commit
b3440aede8
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      genneko.ml

+ 1 - 0
genneko.ml

@@ -779,6 +779,7 @@ let build ctx types =
 	packs @ methods @ boot :: names @ inits @ vars
 
 let generate com =
+	Hashtbl.clear files;
 	let ctx = new_context com (if Common.defined com Define.NekoV1 then 1 else 2) false in
 	let libs = (EBlock (generate_libs_init com.neko_libs) , { psource = "<header>"; pline = 1; }) in
 	let el = build ctx com.types in