Skip to content

Commit 7c8a141

Browse files
committed
Remove temporary -curried option.
1 parent 0f81937 commit 7c8a141

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

jscomp/bsc/rescript_compiler_main.ml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ let setup_runtime_path path =
3434
Bs_version.package_name := std);
3535
Js_config.customize_runtime := Some path
3636

37-
let curry_specified = ref false
38-
3937

4038
let process_file sourcefile ?(kind ) ppf =
4139
(* This is a better default then "", it will be changed later
@@ -48,11 +46,6 @@ let process_file sourcefile ?(kind ) ppf =
4846
match kind with
4947
| None -> Ext_file_extensions.classify_input (Ext_filename.get_extension_maybe sourcefile)
5048
| Some kind -> kind in
51-
(if !curry_specified = false && !Clflags.dump_source = false && !Js_config.syntax_only = false && List.mem kind [Res; Resi] then
52-
let _ = Printf.eprintf "XXX curry not specified %s\n%!" sourcefile in
53-
let _ = assert false in
54-
()
55-
);
5649
let res = match kind with
5750
| Res ->
5851
let sourcefile = set_abs_input_name sourcefile in
@@ -413,10 +406,8 @@ let buckle_script_flags : (string * Bsc_args.spec * string) array =
413406

414407
"-nopervasives", set Clflags.nopervasives,
415408
"*internal*";
416-
"-uncurried", unit_call (fun () -> curry_specified := true; Config.uncurried := Uncurried),
417-
"*internal*";
418-
"-curried", unit_call (fun () -> curry_specified := true; Config.uncurried := Legacy),
419-
"*internal*";
409+
"-uncurried", unit_call (fun () -> Config.uncurried := Uncurried),
410+
"*internal* Set jsx module";
420411
"-v", unit_call print_version_string,
421412
"Print compiler version and location of standard library and exit";
422413

0 commit comments

Comments
 (0)