@@ -121,7 +121,7 @@ let oc_cmi buf namespace source =
121121*)
122122let oc_impl
123123 (mlast : string )
124- (index : Bsb_dir_index.t )
124+ (dev_group : bool )
125125 (db : Bsb_db_decode.t )
126126 (namespace : string option )
127127 (buf : Ext_buffer.t )
@@ -141,7 +141,6 @@ let oc_impl
141141 Ext_buffer. add_string buf ns;
142142 Ext_buffer. add_string buf Literals. suffix_cmi;
143143 ) ; (* TODO: moved into static files*)
144- let is_not_lib_dir = not (Bsb_dir_index. is_lib_dir index) in
145144 let s = extract_dep_raw_string mlast in
146145 let offset = ref 1 in
147146 let size = String. length s in
@@ -155,7 +154,7 @@ let oc_impl
155154 end
156155 );
157156 (match
158- Bsb_db_decode. find db dependent_module is_not_lib_dir
157+ Bsb_db_decode. find db dependent_module dev_group
159158 with
160159 | None -> ()
161160 | Some ({dir_name; case } ) ->
@@ -187,7 +186,7 @@ let oc_impl
187186*)
188187let oc_intf
189188 mliast
190- (index : Bsb_dir_index.t )
189+ (dev_group : bool )
191190 (db : Bsb_db_decode.t )
192191 (namespace : string option )
193192 (buf : Ext_buffer.t ) : unit =
@@ -204,7 +203,6 @@ let oc_intf
204203 Ext_buffer. add_string buf Literals. suffix_cmi;
205204 ) ;
206205 let cur_module_name = Ext_filename. module_name mliast in
207- let is_not_lib_dir = not (Bsb_dir_index. is_lib_dir index) in
208206 let s = extract_dep_raw_string mliast in
209207 let offset = ref 1 in
210208 let size = String. length s in
@@ -217,7 +215,7 @@ let oc_intf
217215 exit 2
218216 end
219217 );
220- (match Bsb_db_decode. find db dependent_module is_not_lib_dir
218+ (match Bsb_db_decode. find db dependent_module dev_group
221219 with
222220 | None -> ()
223221 | Some {dir_name; case} ->
@@ -236,7 +234,7 @@ let oc_intf
236234
237235let emit_d
238236 compilation_kind
239- (index : Bsb_dir_index.t )
237+ (dev_group : bool )
240238 (namespace : string option ) (mlast : string ) (mliast : string ) =
241239 let data =
242240 Bsb_db_decode. read_build_cache
@@ -252,7 +250,7 @@ let emit_d
252250 in
253251 oc_impl
254252 mlast
255- index
253+ dev_group
256254 data
257255 namespace
258256 buf
@@ -261,7 +259,7 @@ let emit_d
261259 if mliast <> " " then begin
262260 oc_intf
263261 mliast
264- index
262+ dev_group
265263 data
266264 namespace
267265 buf
0 commit comments