Skip to content

Commit 37fdb27

Browse files
committed
Remove internal -modules option.
1 parent a363dd8 commit 37fdb27

File tree

4 files changed

+0
-21
lines changed

4 files changed

+0
-21
lines changed

compiler/bsc/rescript_compiler_main.ml

-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,6 @@ let buckle_script_flags : (string * Bsc_args.spec * string) array =
400400
( "-bs-no-bin-annot",
401401
clear Clflags.binary_annotations,
402402
"*internal* Disable binary annotations (by default on)" );
403-
("-modules", set Js_config.modules, "*internal* serve similar to ocamldep");
404403
( "-short-paths",
405404
clear Clflags.real_paths,
406405
"*internal* Shorten paths in types" );

compiler/common/js_config.ml

-1
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,3 @@ let jsx_mode_of_string = function
8484
let customize_runtime : string option ref = ref None
8585
let as_pp = ref false
8686
let self_stack : string Stack.t = Stack.create ()
87-
let modules = ref false

compiler/common/js_config.mli

-2
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,3 @@ val customize_runtime : string option ref
108108
val as_pp : bool ref
109109

110110
val self_stack : string Stack.t
111-
112-
val modules : bool ref

compiler/core/js_implementation.ml

-17
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,12 @@ let print_if_pipe ppf flag printer arg =
3030

3131
let print_if ppf flag printer arg = if !flag then fprintf ppf "%a@." printer arg
3232

33-
let output_deps_set name set =
34-
output_string stdout name;
35-
output_string stdout ": ";
36-
Depend.StringSet.iter
37-
(fun s ->
38-
if s <> "" && s.[0] <> '*' then (
39-
output_string stdout s;
40-
output_string stdout " "))
41-
set;
42-
output_string stdout "\n"
43-
4433
let process_with_gentype cmt_file =
4534
if !Clflags.bs_gentype then GenTypeMain.process_cmt_file cmt_file
4635

4736
let after_parsing_sig ppf outputprefix ast =
4837
if !Clflags.only_parse = false then (
4938
Ast_config.process_sig ast;
50-
if !Js_config.modules then
51-
output_deps_set !Location.input_name
52-
(Ast_extract.read_parse_and_extract Mli ast);
5339
(if !Js_config.binary_ast then
5440
let sourcefile = !Location.input_name in
5541
Binary_ast.write_ast Mli ~sourcefile
@@ -133,9 +119,6 @@ let after_parsing_impl ppf outputprefix (ast : Parsetree.structure) =
133119
!Clflags.assume_no_mli = Mli_non_exists && all_module_alias ast;
134120
Ast_config.process_str ast;
135121
let ast = if !Js_config.no_export then no_export ast else ast in
136-
if !Js_config.modules then
137-
output_deps_set !Location.input_name
138-
(Ast_extract.read_parse_and_extract Ml ast);
139122
(if !Js_config.binary_ast then
140123
let sourcefile = !Location.input_name in
141124
Binary_ast.write_ast ~sourcefile Ml

0 commit comments

Comments
 (0)