File tree Expand file tree Collapse file tree 8 files changed +9141
-9132
lines changed Expand file tree Collapse file tree 8 files changed +9141
-9132
lines changed Original file line number Diff line number Diff line change 24
24
25
25
26
26
let setup_env () =
27
+ Clflags. compile_only := true ;
28
+ Clflags. bs_only := true ;
29
+ Clflags. no_implicit_current_dir := true ;
30
+ (* default true
31
+ otherwise [bsc -I sc src/hello.ml ] will include current directory to search path
32
+ *)
33
+ Clflags. assume_no_mli := Clflags. Mli_non_exists ;
34
+ Clflags. unsafe_string := false ;
35
+ Clflags. debug := true ;
36
+ Clflags. record_event_when_debug := false ;
37
+ Clflags. binary_annotations := true ;
38
+ Clflags. transparent_modules := true ;
39
+ (* Turn on [-no-alias-deps] by default -- double check *)
40
+ Oprint. out_ident := Outcome_printer_ns. out_ident;
41
+
27
42
#if undefined BS_RELEASE_BUILD then
28
43
Printexc. record_backtrace true ;
29
44
(match Ext_sys. getenv_opt " BS_DEBUG_FILE" with
@@ -40,9 +55,3 @@ let setup_env () =
40
55
; Switch. cut := 100 (* tweakable but not very useful *)
41
56
#end
42
57
43
- let standard_library =
44
- #if undefined BS_RELEASE_BUILD then
45
- Filename. concat (Filename. dirname Sys. executable_name) " ocaml"
46
- #else
47
- Config. standard_library
48
- #end
Original file line number Diff line number Diff line change 33
33
*)
34
34
val setup_env : unit -> unit
35
35
36
- val standard_library : string
Original file line number Diff line number Diff line change @@ -260,9 +260,15 @@ let print_version_string () =
260
260
print_newline () ;
261
261
exit 0
262
262
263
-
263
+ let standard_library =
264
+ #if undefined BS_RELEASE_BUILD then
265
+ Filename. concat (Filename. dirname Sys. executable_name) " ocaml"
266
+ #else
267
+ Config. standard_library
268
+ #end
269
+
264
270
let print_standard_library () =
265
- print_string Bs_conditional_initial. standard_library; print_newline() ; exit 0
271
+ print_string standard_library; print_newline() ; exit 0
266
272
267
273
let ocaml_options =
268
274
let set r () = r := true in
Original file line number Diff line number Diff line change @@ -291,22 +291,7 @@ let buckle_script_flags : (string * Arg.spec * string) list =
291
291
292
292
293
293
let _ =
294
- (* Default configuration: sync up with
295
- {!Jsoo_main} *)
296
- Clflags. compile_only := true ;
297
- Clflags. bs_only := true ;
298
- Clflags. no_implicit_current_dir := true ;
299
- (* default true
300
- otherwise [bsc -I sc src/hello.ml ] will include current directory to search path
301
- *)
302
- Clflags. assume_no_mli := Clflags. Mli_non_exists ;
303
- Clflags. unsafe_string := false ;
304
- Clflags. debug := true ;
305
- Clflags. record_event_when_debug := false ;
306
- Clflags. binary_annotations := true ;
307
- Clflags. transparent_modules := true ;
308
- (* Turn on [-no-alias-deps] by default -- double check *)
309
- Oprint. out_ident := Outcome_printer_ns. out_ident;
294
+
310
295
Bs_conditional_initial. setup_env () ;
311
296
try
312
297
Compenv. readenv ppf Before_args ;
Original file line number Diff line number Diff line change 56
56
* type: "error" // or "warning" or "info"
57
57
* }
58
58
*)
59
- let () =
60
- Clflags. compile_only := true ;
61
- Clflags. bs_only := true ;
62
- Oprint. out_ident := Outcome_printer_ns. out_ident;
63
- Clflags. assume_no_mli := Clflags. Mli_non_exists ;
59
+ let () =
64
60
Bs_conditional_initial. setup_env () ;
65
- Clflags. dont_write_files := true ;
66
- Clflags. unsafe_string := false ;
67
- Clflags. record_event_when_debug := false
61
+ Clflags. binary_annotations := false
68
62
69
63
let error_of_exn e =
70
64
#if OCAML_VERSION =~ " >4.03.0" then
Original file line number Diff line number Diff line change @@ -20517,7 +20517,7 @@ module Bs_conditional_initial : sig
20517
20517
*)
20518
20518
val setup_env : unit -> unit
20519
20519
20520
- val standard_library : string
20520
+
20521
20521
end = struct
20522
20522
#1 "bs_conditional_initial.ml"
20523
20523
(* Copyright (C) 2015-2016 Bloomberg Finance L.P.
@@ -20546,15 +20546,26 @@ end = struct
20546
20546
20547
20547
20548
20548
let setup_env () =
20549
+ Clflags.compile_only := true;
20550
+ Clflags.bs_only := true;
20551
+ Clflags.no_implicit_current_dir := true;
20552
+ (* default true
20553
+ otherwise [bsc -I sc src/hello.ml ] will include current directory to search path
20554
+ *)
20555
+ Clflags.assume_no_mli := Clflags.Mli_non_exists;
20556
+ Clflags.unsafe_string := false;
20557
+ Clflags.debug := true;
20558
+ Clflags.record_event_when_debug := false;
20559
+ Clflags.binary_annotations := true;
20560
+ Clflags.transparent_modules := true;
20561
+ (* Turn on [-no-alias-deps] by default -- double check *)
20562
+ Oprint.out_ident := Outcome_printer_ns.out_ident;
20563
+
20549
20564
20550
20565
Lexer.replace_directive_bool "BS" true;
20551
20566
Lexer.replace_directive_string "BS_VERSION" Bs_version.version
20552
20567
20553
20568
20554
- let standard_library =
20555
-
20556
- Config.standard_library
20557
-
20558
20569
20559
20570
end
20560
20571
module Compenv : sig
You can’t perform that action at this time.
0 commit comments