Skip to content

Commit

Permalink
[compiler] [build-fs] Fix target not set error
Browse files Browse the repository at this point in the history
Regression from #1655 .

Not sure if `Config.target` should be better handled as a parameter?
  • Loading branch information
ejgallego authored and hhugo committed Sep 30, 2024
1 parent 543d663 commit 4204ad7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/bin-js_of_ocaml/build_fs.ml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function jsoo_create_file_extern(name,content){
}
|}
in
Config.set_target `JavaScript;
let fragments = Linker.Fragment.parse_string code in
Linker.load_fragments ~target_env:Isomorphic ~filename:"<dummy>" fragments;
Linker.check_deps ();
Expand Down

0 comments on commit 4204ad7

Please sign in to comment.