File tree Expand file tree Collapse file tree 4 files changed +33
-15
lines changed Expand file tree Collapse file tree 4 files changed +33
-15
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,16 @@ let ppx_flags (xs : Bsb_config_types.ppx list) =
44
44
let pp_flag (xs : string ) =
45
45
" -pp " ^ Ext_filename. maybe_quote xs
46
46
47
- let include_dirs = flag_concat " -I"
47
+ let include_dirs dirs =
48
+ String. concat Ext_string. single_space
49
+ (Ext_list. flat_map dirs (fun x -> [" -I" ; Ext_filename. maybe_quote x]))
50
+
51
+
52
+ let include_dirs_by dirs fn =
53
+ String. concat Ext_string. single_space
54
+ (Ext_list. flat_map dirs (fun x -> [" -I" ; Ext_filename. maybe_quote (fn x)]))
55
+
48
56
49
- let include_dirs_by xs fn =
50
- include_dirs (Ext_list. map xs fn)
51
57
(* we use lazy $src_root_dir *)
52
58
53
59
Original file line number Diff line number Diff line change @@ -9666,10 +9666,16 @@ let ppx_flags (xs : Bsb_config_types.ppx list) =
9666
9666
let pp_flag (xs : string) =
9667
9667
"-pp " ^ Ext_filename.maybe_quote xs
9668
9668
9669
- let include_dirs = flag_concat "-I"
9669
+ let include_dirs dirs =
9670
+ String.concat Ext_string.single_space
9671
+ (Ext_list.flat_map dirs (fun x -> ["-I"; Ext_filename.maybe_quote x]))
9672
+
9673
+
9674
+ let include_dirs_by dirs fn =
9675
+ String.concat Ext_string.single_space
9676
+ (Ext_list.flat_map dirs (fun x -> ["-I"; Ext_filename.maybe_quote (fn x)]))
9677
+
9670
9678
9671
- let include_dirs_by xs fn =
9672
- include_dirs (Ext_list.map xs fn)
9673
9679
(* we use lazy $src_root_dir *)
9674
9680
9675
9681
Original file line number Diff line number Diff line change @@ -9666,10 +9666,16 @@ let ppx_flags (xs : Bsb_config_types.ppx list) =
9666
9666
let pp_flag (xs : string) =
9667
9667
"-pp " ^ Ext_filename.maybe_quote xs
9668
9668
9669
- let include_dirs = flag_concat "-I"
9669
+ let include_dirs dirs =
9670
+ String.concat Ext_string.single_space
9671
+ (Ext_list.flat_map dirs (fun x -> ["-I"; Ext_filename.maybe_quote x]))
9672
+
9673
+
9674
+ let include_dirs_by dirs fn =
9675
+ String.concat Ext_string.single_space
9676
+ (Ext_list.flat_map dirs (fun x -> ["-I"; Ext_filename.maybe_quote (fn x)]))
9677
+
9670
9678
9671
- let include_dirs_by xs fn =
9672
- include_dirs (Ext_list.map xs fn)
9673
9679
(* we use lazy $src_root_dir *)
9674
9680
9675
9681
Original file line number Diff line number Diff line change @@ -99,7 +99,9 @@ function provideNinja() {
99
99
"ninja binary is already cached and installed: " ,
100
100
ninja_bin_output
101
101
) ;
102
- } else if ( fs . existsSync ( ninja_os_path ) ) {
102
+ return ;
103
+ }
104
+ if ( fs . existsSync ( ninja_os_path ) ) {
103
105
if ( fs . copyFileSync ) {
104
106
// ninja binary size is small
105
107
fs . copyFileSync ( ninja_os_path , ninja_bin_output ) ;
@@ -108,12 +110,10 @@ function provideNinja() {
108
110
}
109
111
if ( test_ninja_compatible ( ninja_bin_output ) ) {
110
112
console . log ( "ninja binary is copied from pre-distribution" ) ;
111
- } else {
112
- build_ninja ( ) ;
113
+ return ;
113
114
}
114
- } else {
115
- build_ninja ( ) ;
116
115
}
116
+ build_ninja ( ) ;
117
117
}
118
118
/**
119
119
*
@@ -358,7 +358,7 @@ function provideCompiler() {
358
358
ocamlopt : "ocamlopt.opt" ,
359
359
ext : ".exe" ,
360
360
INCL : ocamlVersion ,
361
- isWin : is_windows
361
+ isWin : is_windows
362
362
} ) ;
363
363
364
364
var filePath = path . join ( lib_dir , "release.ninja" ) ;
You can’t perform that action at this time.
0 commit comments