From 4204ad7ac3cd1533efd8362079dd1201a982c61a Mon Sep 17 00:00:00 2001 From: Emilio Jesus Gallego Arias Date: Sat, 28 Sep 2024 14:52:43 +0200 Subject: [PATCH] [compiler] [build-fs] Fix `target not set error` Regression from #1655 . Not sure if `Config.target` should be better handled as a parameter? --- compiler/bin-js_of_ocaml/build_fs.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/bin-js_of_ocaml/build_fs.ml b/compiler/bin-js_of_ocaml/build_fs.ml index 16ac22a23d..3d20db9454 100644 --- a/compiler/bin-js_of_ocaml/build_fs.ml +++ b/compiler/bin-js_of_ocaml/build_fs.ml @@ -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:"" fragments; Linker.check_deps ();