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 ocsigen#1655 .

Not sure if `Config.target` should be better handled as a parameter?
  • Loading branch information
ejgallego committed Sep 28, 2024
1 parent 6c04a4d commit 69bb025
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 69bb025

Please sign in to comment.