@@ -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
4038let 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