diff options
author | Bob Wilson <bob.wilson@apple.com> | 2009-03-06 00:00:58 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2009-03-06 00:00:58 +0000 |
commit | bd2934d1411a23da66d74ebb4e2653f013cfe927 (patch) | |
tree | 57dffd6067c2548b3ef4ab8a5b4f3fe1565dacb6 /lib/Transforms/Utils/Local.cpp | |
parent | ea5f86f32dcd865c97985599cd728917706d4993 (diff) | |
download | external_llvm-bd2934d1411a23da66d74ebb4e2653f013cfe927.tar.gz external_llvm-bd2934d1411a23da66d74ebb4e2653f013cfe927.tar.bz2 external_llvm-bd2934d1411a23da66d74ebb4e2653f013cfe927.zip |
Fix a parallel make race condition by swapping the order of -I directories.
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
Diffstat (limited to 'lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions