File tree Expand file tree Collapse file tree 4 files changed +39
-18
lines changed Expand file tree Collapse file tree 4 files changed +39
-18
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,8 @@ let make_custom_rules
129
129
~is_dev
130
130
~postbuild : string =
131
131
Ext_buffer. clear buf;
132
- Ext_buffer. add_string buf " $bsc $g_pkg_flg -color always" ;
132
+ Ext_buffer. add_string buf " $bsc -color always" ;
133
+ Ext_buffer. add_ninja_prefix_var buf Bsb_ninja_global_vars. g_pkg_flg;
133
134
if bs_suffix then
134
135
Ext_buffer. add_string buf " -bs-suffix" ;
135
136
if read_cmi then
Original file line number Diff line number Diff line change @@ -54,11 +54,17 @@ let prepare_warning_concat ~(beg : bool) s =
54
54
let to_merlin_string x =
55
55
" -w " ^ Bsc_warnings. defaults_w
56
56
^
57
- (match x with
58
- | Some {number = None }
59
- | None -> Ext_string. empty
60
- | Some {number = Some x } ->
61
- prepare_warning_concat ~beg: false x )
57
+ (let customize = (match x with
58
+ | Some {number = None }
59
+ | None -> Ext_string. empty
60
+ | Some {number = Some x } ->
61
+ prepare_warning_concat ~beg: false x
62
+ ) in
63
+ if customize = " " then customize
64
+ else customize ^ " -40-42-61" )
65
+ (* see #4406 to avoid user pass A
66
+ Sync up with {!Warnings.report}
67
+ *)
62
68
63
69
64
70
Original file line number Diff line number Diff line change @@ -7114,11 +7114,17 @@ let prepare_warning_concat ~(beg : bool) s =
7114
7114
let to_merlin_string x =
7115
7115
"-w " ^ Bsc_warnings.defaults_w
7116
7116
^
7117
- (match x with
7118
- | Some {number =None}
7119
- | None -> Ext_string.empty
7120
- | Some {number = Some x} ->
7121
- prepare_warning_concat ~beg:false x )
7117
+ (let customize = (match x with
7118
+ | Some {number =None}
7119
+ | None -> Ext_string.empty
7120
+ | Some {number = Some x} ->
7121
+ prepare_warning_concat ~beg:false x
7122
+ ) in
7123
+ if customize = "" then customize
7124
+ else customize ^ "-40-42-61")
7125
+ (* see #4406 to avoid user pass A
7126
+ Sync up with {!Warnings.report}
7127
+ *)
7122
7128
7123
7129
7124
7130
@@ -12812,7 +12818,8 @@ let make_custom_rules
12812
12818
~is_dev
12813
12819
~postbuild : string =
12814
12820
Ext_buffer.clear buf;
12815
- Ext_buffer.add_string buf "$bsc $g_pkg_flg -color always";
12821
+ Ext_buffer.add_string buf "$bsc -color always";
12822
+ Ext_buffer.add_ninja_prefix_var buf Bsb_ninja_global_vars.g_pkg_flg;
12816
12823
if bs_suffix then
12817
12824
Ext_buffer.add_string buf " -bs-suffix";
12818
12825
if read_cmi then
Original file line number Diff line number Diff line change @@ -7120,11 +7120,17 @@ let prepare_warning_concat ~(beg : bool) s =
7120
7120
let to_merlin_string x =
7121
7121
"-w " ^ Bsc_warnings.defaults_w
7122
7122
^
7123
- (match x with
7124
- | Some {number =None}
7125
- | None -> Ext_string.empty
7126
- | Some {number = Some x} ->
7127
- prepare_warning_concat ~beg:false x )
7123
+ (let customize = (match x with
7124
+ | Some {number =None}
7125
+ | None -> Ext_string.empty
7126
+ | Some {number = Some x} ->
7127
+ prepare_warning_concat ~beg:false x
7128
+ ) in
7129
+ if customize = "" then customize
7130
+ else customize ^ "-40-42-61")
7131
+ (* see #4406 to avoid user pass A
7132
+ Sync up with {!Warnings.report}
7133
+ *)
7128
7134
7129
7135
7130
7136
@@ -12961,7 +12967,8 @@ let make_custom_rules
12961
12967
~is_dev
12962
12968
~postbuild : string =
12963
12969
Ext_buffer.clear buf;
12964
- Ext_buffer.add_string buf "$bsc $g_pkg_flg -color always";
12970
+ Ext_buffer.add_string buf "$bsc -color always";
12971
+ Ext_buffer.add_ninja_prefix_var buf Bsb_ninja_global_vars.g_pkg_flg;
12965
12972
if bs_suffix then
12966
12973
Ext_buffer.add_string buf " -bs-suffix";
12967
12974
if read_cmi then
You can’t perform that action at this time.
0 commit comments