@@ -140,8 +140,8 @@ let output_ninja_and_namespace_map
140
140
~has_builtin: (built_in_dependency <> None )
141
141
~bs_suffix
142
142
generators in
143
- let bsc = bsc_dir // bsc_exe in (* The path to [bsc.exe] independent of config *)
144
- let bsdep = bsc_dir // bsb_helper_exe in (* The path to [bsb_heler.exe] *)
143
+
144
+
145
145
let cwd_lib_bs = cwd // Bsb_config. lib_bs in
146
146
let ppx_flags = Bsb_build_util. ppx_flags ppx_files in
147
147
let refmt_flags = String. concat Ext_string. single_space refmt_flags in
@@ -169,7 +169,7 @@ let output_ninja_and_namespace_map
169
169
);
170
170
Ext_option. iter built_in_dependency (fun x ->
171
171
Bsb_ninja_util. output_kv Bsb_ninja_global_vars. g_stdlib_incl
172
- (Filename. quote x.package_install_path) oc
172
+ (Ext_filename. maybe_quote x.package_install_path) oc
173
173
)
174
174
;
175
175
(*
@@ -187,8 +187,10 @@ let output_ninja_and_namespace_map
187
187
[|
188
188
Bsb_ninja_global_vars. g_pkg_flg, g_pkg_flg ;
189
189
Bsb_ninja_global_vars. src_root_dir, cwd (* TODO: need check its integrity -- allow relocate or not? *) ;
190
- Bsb_ninja_global_vars. bsc, bsc ;
191
- Bsb_ninja_global_vars. bsdep, bsdep;
190
+ (* The path to [bsc.exe] independent of config *)
191
+ Bsb_ninja_global_vars. bsc, (Ext_filename. maybe_quote (bsc_dir // bsc_exe));
192
+ (* The path to [bsb_heler.exe] *)
193
+ Bsb_ninja_global_vars. bsdep, (Ext_filename. maybe_quote (bsc_dir // bsb_helper_exe)) ;
192
194
Bsb_ninja_global_vars. warnings, Bsb_warning. opt_warning_to_string not_dev warning ;
193
195
Bsb_ninja_global_vars. bsc_flags, (get_bsc_flags not_dev bsc_flags) ;
194
196
Bsb_ninja_global_vars. ppx_flags, ppx_flags;
0 commit comments