Skip to content

Commit 30af6f4

Browse files
committed
change BS_COMPILER_IN_BROWSER => BS_BROWSER
1 parent 7f1c9ff commit 30af6f4

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

jscomp/bin/reactjs_jsx_ppx_v2.bspp.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ let jsxMapper () =
332332
{ default_mapper with structure; expr }
333333
#end
334334

335-
#if BS_COMPILER_IN_BROWSER then
335+
#if BS_BROWSER then
336336

337337
module Js = struct
338338
module Unsafe = struct

jscomp/core/js_cmj_load.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type cmj_load_info = {
3434
cmj_path : path ;
3535
}
3636

37-
#if BS_COMPILER_IN_BROWSER then
37+
#if BS_BROWSER then
3838
let find_cmj_exn file : cmj_load_info =
3939
let target = Ext_string.uncapitalize_ascii (Filename.basename file) in
4040
match Map_string.find_exn !Js_cmj_datasets.data_sets target with

jscomp/core/js_name_of_module_id.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ let string_of_module_id
198198

199199

200200
(* Override it in browser *)
201-
#if BS_COMPILER_IN_BROWSER then
201+
#if BS_BROWSER then
202202
let string_of_module_id_in_browser (x : Lam_module_ident.t) =
203203
match x.kind with
204204
| External name -> name

jscomp/core/js_pass_debug.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727

2828

29-
#if BS_COMPILER_IN_BROWSER || BS_RELEASE_BUILD then
29+
#if BS_BROWSER || BS_RELEASE_BUILD then
3030
let dump _ (prog : J.program) =
3131
prog
3232
#else

jscomp/core/lam_util.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ let generate_label ?(name="") () =
211211
incr count;
212212
Printf.sprintf "%s_tailcall_%04d" name !count
213213

214-
#if BS_COMPILER_IN_BROWSER || BS_RELEASE_BUILD then
214+
#if BS_BROWSER || BS_RELEASE_BUILD then
215215
let dump ext lam =
216216
()
217217
#else

jscomp/ext/ext_string.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ let replace_backward_slash (x : string)=
332332

333333
let empty = ""
334334

335-
#if BS_COMPILER_IN_BROWSER then
335+
#if BS_BROWSER then
336336
let compare = Bs_hash_stubs.string_length_based_compare
337337
#else
338338
external compare : string -> string -> int = "caml_string_length_based_compare" [@@noalloc];;

jscomp/ext/ext_string.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ val replace_backward_slash : string -> string
164164

165165
val empty : string
166166

167-
#if BS_COMPILER_IN_BROWSER then
167+
#if BS_BROWSER then
168168
val compare : string -> string -> int
169169
#else
170170
external compare : string -> string -> int = "caml_string_length_based_compare" [@@noalloc];;

jscomp/snapshot.ninja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ build $SNAP/unstable/bspack.ml: bspack | ./bin/bspack.exe
6161
main = Bspack_main
6262

6363
build $SNAP/unstable/js_compiler.ml: bspack | ./bin/bspack.exe
64-
flags = -D BS_COMPILER_IN_BROWSER=true -D BS_RELEASE_BUILD=true -bs-MD -module-alias Config=Config_whole_compiler -bs-exclude-I config -I $OCAML_SRC_UTILS -I $OCAML_SRC_PARSING -I $OCAML_SRC_TYPING -I $OCAML_SRC_BYTECOMP -I $OCAML_SRC_DRIVER -I stubs -I ext -I syntax -I depends -I common -I core -I super_errors -I bsb -I outcome_printer -I main
64+
flags = -D BS_BROWSER=true -D BS_RELEASE_BUILD=true -bs-MD -module-alias Config=Config_whole_compiler -bs-exclude-I config -I $OCAML_SRC_UTILS -I $OCAML_SRC_PARSING -I $OCAML_SRC_TYPING -I $OCAML_SRC_BYTECOMP -I $OCAML_SRC_DRIVER -I stubs -I ext -I syntax -I depends -I common -I core -I super_errors -I bsb -I outcome_printer -I main
6565
main = Jsoo_main
6666

6767
build $SNAP/unstable/js_refmt_compiler.ml: bspack | ./bin/bspack.exe
68-
flags = -D BS_COMPILER_IN_BROWSER=true -D BS_RELEASE_BUILD=true -bs-MD -module-alias Config=Config_whole_compiler -bs-exclude-I config -I $OCAML_SRC_UTILS -I $OCAML_SRC_PARSING -I $OCAML_SRC_TYPING -I $OCAML_SRC_BYTECOMP -I $OCAML_SRC_DRIVER -I js_parser -I stubs -I ext -I syntax -I depends -I common -I core -I super_errors -I bsb -I outcome_printer -I main -I refmt
68+
flags = -D BS_BROWSER=true -D BS_RELEASE_BUILD=true -bs-MD -module-alias Config=Config_whole_compiler -bs-exclude-I config -I $OCAML_SRC_UTILS -I $OCAML_SRC_PARSING -I $OCAML_SRC_TYPING -I $OCAML_SRC_BYTECOMP -I $OCAML_SRC_DRIVER -I js_parser -I stubs -I ext -I syntax -I depends -I common -I core -I super_errors -I bsb -I outcome_printer -I main -I refmt
6969
main = Jsoo_refmt_main
7070
# -o $@
7171
# Check it later

jscomp/stubs/bs_hash_stubs.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
#if BS_COMPILER_IN_BROWSER then
2+
#if BS_BROWSER then
33

44

55
let hash_string : string -> int = Hashtbl.hash

jscomp/test/ext_string_test.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ let replace_backward_slash (x : string)=
415415

416416
let empty = ""
417417

418-
#if BS_COMPILER_IN_BROWSER then
418+
#if BS_BROWSER then
419419
let compare = Bs_hash_stubs.string_length_based_compare
420420
#else
421421
external compare : string -> string -> int = "caml_string_length_based_compare" "noalloc";;

0 commit comments

Comments
 (0)