mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-21 03:05:15 +00:00
fbcb5235b0
The .cmi files are generated in $(ObjDir) and then copied to $(OcamlDir). The ocamldep output references the .cmi files in $(ObjDir), so make kicks off a dependent compile as soon as the local copy is generated. If the copy to $(OcamlDir) is not complete at that point, the compiler will read the partially copied file and complain about a "Corrupted compiled interface". Searching $(ObjDir) first avoids this. llvm-svn: 66217