Browse Source

keep interfaces in dce

Nicolas Cannasse 13 years ago
parent
commit
a45eca3f20
1 changed files with 1 additions and 0 deletions
  1. 1 0
      typer.ml

+ 1 - 0
typer.ml

@@ -1986,6 +1986,7 @@ let dce_optimize ctx =
 		if c.cl_ordered_statics = [] && c.cl_ordered_fields = [] then
 			match c with
 			| { cl_extern = true }
+			| { cl_interface = true }
 			| { cl_path = ["flash";"_Boot"],"RealBoot" }
 				-> ()
 			| _ when has_meta ":?used" c.cl_meta || has_meta ":keep" c.cl_meta || (match c.cl_constructor with Some f -> has_meta ":?used" f.cf_meta | _ -> false)