Skip to content

Commit

Permalink
Remove the --disable-prelude flags
Browse files Browse the repository at this point in the history
it somehow affected the source map generation, but I see no problem in
simply always including the prelude in the source map.
  • Loading branch information
nomeata committed Jun 19, 2019
1 parent 1e1757a commit 2b6b6c5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/exes/asc.ml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ let argspec = Arg.align
"-dt", Arg.Set Flags.dump_tc, " dump type-checked AST";
"-dl", Arg.Set Flags.dump_lowering, " dump intermediate representation ";
"-no-check-ir", Arg.Clear Flags.check_ir, " do not check intermediate code";
"--disable-prelude", Arg.Clear Flags.prelude, " disable prelude";
]


Expand Down
1 change: 0 additions & 1 deletion src/flags/flags.ml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ let dump_tc = ref false
let dump_lowering = ref false
let interpret_ir = ref false
let source_map = ref false
let prelude = ref true
let link = ref true
let check_ir = ref true
6 changes: 2 additions & 4 deletions src/wasm-exts/customModuleEncode.ml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,8 @@ let encode (em : extended_module) =
| h :: t -> if x = h then 0 else 1 + (add_source x t)
in

if !Flags.prelude then begin
sources := !sources @ [ "prelude" ];
sourcesContent := !sourcesContent @ [ Prelude.prelude ]
end;
sources := !sources @ [ "prelude" ];
sourcesContent := !sourcesContent @ [ Prelude.prelude ];

let add_to_map file il ic ol oc =
let il = il - 1 in
Expand Down

0 comments on commit 2b6b6c5

Please sign in to comment.