Skip to content

Commit 10f294f

Browse files
committed
fix(pkg): add relocatable-compiler to compiler_package_names
The relocatable-compiler package installs libraries (including threads, str, unix) under target/lib/ocaml/, matching the layout of other compiler packages. Without being listed in compiler_package_names, install_roots did not append the /ocaml subdirectory to its lib_root, causing dev-tools like utop to fail with "Library threads not found". Signed-off-by: Ali Caglayan <alizter@gmail.com>
1 parent 08babe5 commit 10f294f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/dune_pkg/dev_tool.ml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,12 @@ let needs_to_build_with_same_compiler_as_project = function
128128
let compiler_package_names =
129129
List.map
130130
~f:Package_name.of_string
131-
[ "ocaml"; "ocaml-base-compiler"; "ocaml-variants"; "ocaml-compiler" ]
131+
[ "ocaml"
132+
; "ocaml-base-compiler"
133+
; "ocaml-variants"
134+
; "ocaml-compiler"
135+
; "relocatable-compiler"
136+
]
132137
;;
133138

134139
let is_compiler_package name =

0 commit comments

Comments
 (0)