@@ -213,24 +213,23 @@ pub fn generate_asts(
213213 . namespace
214214 . to_suffix ( )
215215 . expect ( "namespace should be set for mlmap module" ) ;
216- // copy the mlmap to the bs build path for editor tooling
217216 let base_build_path = package. get_build_path ( ) + "/" + & suffix;
218- let base_bs_build_path = package. get_bs_build_path ( ) + "/" + & suffix;
217+ let base_ocaml_build_path = package. get_ocaml_build_path ( ) + "/" + & suffix;
219218 let _ = std:: fs:: copy (
220219 base_build_path. to_string ( ) + ".cmi" ,
221- base_bs_build_path . to_string ( ) + ".cmi" ,
220+ base_ocaml_build_path . to_string ( ) + ".cmi" ,
222221 ) ;
223222 let _ = std:: fs:: copy (
224223 base_build_path. to_string ( ) + ".cmt" ,
225- base_bs_build_path . to_string ( ) + ".cmt" ,
224+ base_ocaml_build_path . to_string ( ) + ".cmt" ,
226225 ) ;
227226 let _ = std:: fs:: copy (
228227 base_build_path. to_string ( ) + ".cmj" ,
229- base_bs_build_path . to_string ( ) + ".cmj" ,
228+ base_ocaml_build_path . to_string ( ) + ".cmj" ,
230229 ) ;
231230 let _ = std:: fs:: copy (
232231 base_build_path. to_string ( ) + ".mlmap" ,
233- base_bs_build_path . to_string ( ) + ".mlmap" ,
232+ base_ocaml_build_path . to_string ( ) + ".mlmap" ,
234233 ) ;
235234 match ( mlmap_hash, mlmap_hash_after) {
236235 ( Some ( digest) , Some ( digest_after) ) => !digest. eq ( & digest_after) ,
@@ -362,7 +361,6 @@ fn generate_ast(
362361 ) )
363362 } ;
364363 if let Ok ( ( ast_path, _) ) = & result {
365- // let dir = std::path::Path::new(filename).parent().unwrap();
366364 let _ = std:: fs:: copy (
367365 Path :: new ( & build_path_abs) . join ( & ast_path) ,
368366 std:: path:: Path :: new ( & package. get_build_path ( ) ) . join ( ast_path. file_name ( ) . unwrap ( ) ) ,
0 commit comments