@@ -13637,30 +13637,21 @@ let handle_generators oc
13637
13637
13638
13638
type suffixes = {
13639
13639
impl : string;
13640
- intf : string ;
13641
- impl_ast : string;
13642
- intf_ast : string;
13640
+ intf : string
13643
13641
}
13644
13642
13645
13643
let re_suffixes = {
13646
13644
impl = Literals.suffix_re;
13647
13645
intf = Literals.suffix_rei;
13648
- impl_ast = Literals.suffix_ast;
13649
- intf_ast = Literals.suffix_iast;
13650
-
13651
13646
}
13652
13647
13653
13648
let ml_suffixes = {
13654
13649
impl = Literals.suffix_ml;
13655
13650
intf = Literals.suffix_mli;
13656
- impl_ast = Literals.suffix_ast;
13657
- intf_ast = Literals.suffix_iast
13658
13651
}
13659
13652
let res_suffixes = {
13660
13653
impl = Literals.suffix_res;
13661
13654
intf = Literals.suffix_resi;
13662
- impl_ast = Literals.suffix_ast;
13663
- intf_ast = Literals.suffix_iast
13664
13655
}
13665
13656
let emit_module_build
13666
13657
(rules : Bsb_ninja_rule.builtin)
@@ -13680,8 +13671,8 @@ let emit_module_build
13680
13671
let filename_sans_extension = module_info.name_sans_extension in
13681
13672
let input_impl = Bsb_config.proj_rel (filename_sans_extension ^ config.impl ) in
13682
13673
let input_intf = Bsb_config.proj_rel (filename_sans_extension ^ config.intf) in
13683
- let output_mlast = filename_sans_extension ^ config.impl_ast in
13684
- let output_mliast = filename_sans_extension ^ config.intf_ast in
13674
+ let output_ast = filename_sans_extension ^ Literals.suffix_ast in
13675
+ let output_iast = filename_sans_extension ^ Literals.suffix_iast in
13685
13676
let output_d = filename_sans_extension ^ Literals.suffix_d in
13686
13677
let output_filename_sans_extension =
13687
13678
Ext_namespace_encode.make ?ns:namespace filename_sans_extension
@@ -13692,18 +13683,18 @@ let emit_module_build
13692
13683
Bsb_package_specs.get_list_of_output_js package_specs output_filename_sans_extension in
13693
13684
13694
13685
Bsb_ninja_targets.output_build oc
13695
- ~outputs:[output_mlast ]
13686
+ ~outputs:[output_ast ]
13696
13687
~inputs:[input_impl]
13697
13688
~rule:ast_rule;
13698
13689
Bsb_ninja_targets.output_build
13699
13690
oc
13700
13691
~outputs:[output_d]
13701
- ~inputs:(if has_intf_file then [output_mlast;output_mliast ] else [output_mlast ] )
13692
+ ~inputs:(if has_intf_file then [output_ast;output_iast ] else [output_ast ] )
13702
13693
~rule:(if is_dev then rules.build_bin_deps_dev else rules.build_bin_deps)
13703
13694
;
13704
13695
if has_intf_file then begin
13705
13696
Bsb_ninja_targets.output_build oc
13706
- ~outputs:[output_mliast ]
13697
+ ~outputs:[output_iast ]
13707
13698
(* TODO: we can get rid of absloute path if we fixed the location to be
13708
13699
[lib/bs], better for testing?
13709
13700
*)
@@ -13713,7 +13704,7 @@ let emit_module_build
13713
13704
Bsb_ninja_targets.output_build oc
13714
13705
~outputs:[output_cmi]
13715
13706
~order_only_deps:[output_d]
13716
- ~inputs:[output_mliast ]
13707
+ ~inputs:[output_iast ]
13717
13708
~rule:(if is_dev then rules.mi_dev else rules.mi)
13718
13709
;
13719
13710
end;
@@ -13730,7 +13721,7 @@ let emit_module_build
13730
13721
~outputs:[output_cmj]
13731
13722
~implicit_outputs:
13732
13723
(if has_intf_file then output_js else output_cmi::output_js )
13733
- ~inputs:[output_mlast ]
13724
+ ~inputs:[output_ast ]
13734
13725
~implicit_deps:(if has_intf_file then [output_cmi] else [] )
13735
13726
~order_only_deps:[output_d]
13736
13727
~rule
0 commit comments