File tree Expand file tree Collapse file tree 1 file changed +6
-24
lines changed Expand file tree Collapse file tree 1 file changed +6
-24
lines changed Original file line number Diff line number Diff line change @@ -46,20 +46,7 @@ let handle_generators oc
46
46
)
47
47
48
48
49
- let make_common_shadows
50
- package_specs
51
- dirname
52
- : Bsb_ninja_targets. shadow list
53
- =
54
-
55
- [{ key = Bsb_ninja_global_vars. g_pkg_flg;
56
- op =
57
- Append
58
- (Bsb_package_specs. package_flag_of_package_specs
59
- package_specs dirname
60
- )
61
- }]
62
-
49
+
63
50
64
51
type suffixes = {
65
52
impl : string ;
@@ -117,10 +104,6 @@ let emit_module_build
117
104
let output_cmj = output_filename_sans_extension ^ Literals. suffix_cmj in
118
105
let output_js =
119
106
Bsb_package_specs. get_list_of_output_js package_specs output_filename_sans_extension in
120
- let common_shadows =
121
- make_common_shadows package_specs
122
- (Filename. dirname output_cmi)
123
- in
124
107
125
108
Bsb_ninja_targets. output_build oc
126
109
~outputs: [output_mlast]
@@ -143,20 +126,19 @@ let emit_module_build
143
126
;
144
127
Bsb_ninja_targets. output_build oc
145
128
~outputs: [output_cmi]
146
- ~shadows: common_shadows
147
129
~order_only_deps: [output_d]
148
130
~inputs: [output_mliast]
149
131
~rule: (if is_dev then rules.mi_dev else rules.mi)
150
132
;
151
133
end ;
152
134
153
- let shadows =
135
+ let shadows : Bsb_ninja_targets.shadow list =
154
136
match js_post_build_cmd with
155
- | None -> common_shadows
137
+ | None -> []
156
138
| Some cmd ->
157
- {key = Bsb_ninja_global_vars. postbuild;
158
- op = Overwrite (" && " ^ cmd ^ Ext_string. single_space ^ String. concat Ext_string. single_space output_js)}
159
- :: common_shadows
139
+ [ {key = Bsb_ninja_global_vars. postbuild;
140
+ op = Overwrite (" && " ^ cmd ^ Ext_string. single_space ^ String. concat Ext_string. single_space output_js)}]
141
+
160
142
in
161
143
let rule =
162
144
if has_intf_file then
You can’t perform that action at this time.
0 commit comments