forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclflags.ml
71 lines (45 loc) · 1.74 KB
/
clflags.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
let output_name = ref (None : string option) (* -o *)
and include_dirs = ref ([] : string list) (* -I *)
and debug = ref false (* -g *)
and fast = ref false (* -unsafe *)
and nopervasives = ref false (* -nopervasives *)
and preprocessor = ref (None : string option) (* -pp *)
and all_ppx = ref ([] : string list)
(* -ppx *)
let annotations = ref false (* -annot *)
let binary_annotations = ref false (* -annot *)
and noassert = ref false (* -noassert *)
and verbose = ref false (* -verbose *)
and open_modules = ref [] (* -open *)
and real_paths = ref true (* -short-paths *)
and applicative_functors = ref true (* -no-app-funct *)
and error_size = ref 500 (* -error-size *)
and transparent_modules = ref false (* -trans-mod *)
let dump_source = ref false (* -dsource *)
let dump_parsetree = ref false (* -dparsetree *)
and dump_typedtree = ref false (* -dtypedtree *)
and dump_rawlambda = ref false (* -drawlambda *)
and dump_lambda = ref false (* -dlambda *)
and only_parse = ref false (* -only-parse *)
and ignore_parse_errors = ref false (* -ignore-parse-errors *)
let dont_write_files = ref false (* set to true under ocamldoc *)
let reset_dump_state () =
dump_source := false;
dump_parsetree := false;
dump_typedtree := false;
dump_rawlambda := false
let keep_locs = ref true (* -keep-locs *)
let parse_color_setting = function
| "auto" -> Some Misc.Color.Auto
| "always" -> Some Misc.Color.Always
| "never" -> Some Misc.Color.Never
| _ -> None
let color = ref None
(* -color *)
let unboxed_types = ref false
type mli_status = Mli_exists | Mli_non_exists
let assume_no_mli = ref Mli_non_exists
let dont_record_crc_unit : string option ref = ref None
let bs_gentype = ref false
let no_assert_false = ref false
let dump_location = ref true