diff options
Diffstat (limited to 'ocamlbuild/ocaml_compiler.ml')
-rw-r--r-- | ocamlbuild/ocaml_compiler.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ocamlbuild/ocaml_compiler.ml b/ocamlbuild/ocaml_compiler.ml index 57632b718..c0d8d2611 100644 --- a/ocamlbuild/ocaml_compiler.ml +++ b/ocamlbuild/ocaml_compiler.ml @@ -246,7 +246,7 @@ let link_units table extensions cmX_ext cma_ext a_ext linker tagger contents_lis let _ = Rule.build_deps_of_tags build tags in let dir = let dir1 = Pathname.remove_extensions cmX in - if Pathname.exists_in_source_dir dir1 then dir1 + if Resource.exists_in_source_dir dir1 then dir1 else Pathname.dirname cmX in let include_dirs = Pathname.include_dirs_of dir in let extension_keys = List.map fst extensions in |