Fix a parallel make race condition by swapping the order of -I directories.
authorBob Wilson <bob.wilson@apple.com>
Fri, 6 Mar 2009 00:00:58 +0000 (00:00 +0000)
committerBob Wilson <bob.wilson@apple.com>
Fri, 6 Mar 2009 00:00:58 +0000 (00:00 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66217 91177308-0d34-0410-b5e6-96231b3b80d8


No differences found