File tree Expand file tree Collapse file tree 4 files changed +13
-12
lines changed Expand file tree Collapse file tree 4 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ let dev = "dev"
61
61
let export_all = " all"
62
62
let export_none = " none"
63
63
64
- let bsb_dir_group = " bsb_dir_group "
64
+
65
65
let g_lib_incls = " g_lib_incls"
66
66
let use_stdlib = " use-stdlib"
67
67
let reason = " reason"
Original file line number Diff line number Diff line change @@ -110,12 +110,7 @@ let emit_module_build
110
110
oc
111
111
~outputs: [output_d]
112
112
~inputs: (if has_intf_file then [output_mlast;output_mliast] else [output_mlast] )
113
- ~rule: rules.build_bin_deps
114
- ?shadows:(if is_dev then
115
- Some [{Bsb_ninja_targets. key = Bsb_build_schemas. bsb_dir_group ;
116
- op =
117
- Overwrite " -g" }]
118
- else None )
113
+ ~rule: (if is_dev then rules.build_bin_deps_dev else rules.build_bin_deps)
119
114
;
120
115
if has_intf_file then begin
121
116
Bsb_ninja_targets. output_build oc
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ type builtin = {
94
94
copy_resources : t ;
95
95
(* * Rules below all need restat *)
96
96
build_bin_deps : t ;
97
-
97
+ build_bin_deps_dev : t ;
98
98
ml_cmj_js : t ;
99
99
ml_cmj_js_dev : t ;
100
100
ml_cmj_cmi_js : t ;
@@ -194,8 +194,14 @@ let make_custom_rules
194
194
define
195
195
~restat: ()
196
196
~command:
197
- (" $bsdep -hash " ^ digest ^ " $g_ns $bsb_dir_group $in" )
198
- " build_deps" in
197
+ (" $bsdep -hash " ^ digest ^ " $g_ns $in" )
198
+ " mk_deps" in
199
+ let build_bin_deps_dev =
200
+ define
201
+ ~restat: ()
202
+ ~command:
203
+ (" $bsdep -g -hash " ^ digest ^ " $g_ns $in" )
204
+ " mk_deps_dev" in
199
205
let aux ~name ~read_cmi ~postbuild =
200
206
let postbuild = has_postbuild && postbuild in
201
207
define
@@ -239,7 +245,7 @@ let make_custom_rules
239
245
copy_resources;
240
246
(* * Rules below all need restat *)
241
247
build_bin_deps ;
242
-
248
+ build_bin_deps_dev;
243
249
ml_cmj_js ;
244
250
ml_cmj_js_dev ;
245
251
ml_cmj_cmi_js ;
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ type builtin = {
45
45
copy_resources : t ;
46
46
(* * Rules below all need restat *)
47
47
build_bin_deps : t ;
48
-
48
+ build_bin_deps_dev : t ;
49
49
ml_cmj_js : t ;
50
50
ml_cmj_js_dev : t ;
51
51
ml_cmj_cmi_js : t ;
You can’t perform that action at this time.
0 commit comments