[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
depcomp for Portland Group Compilers: get rid of file locking hack?
From: |
Stefano Lattarini |
Subject: |
depcomp for Portland Group Compilers: get rid of file locking hack? |
Date: |
Thu, 12 Jul 2012 22:43:24 +0200 |
Reading the documentation provided here:
<http://www.pgroup.com/doc/pgiref.pdf>
I see that the the '-MD' option should also accept an argument:
-MD,filename (pgcpp only) Generate make dependence lists and print
them to file filename.
maybe we could we use this to get rid of the need of the horrid file-locking
hack -- explained in this comments from depcomp:
# For projects that build the same source file twice into different object
# files, the pgcc approach of using the *source* file root name can cause
# problems in parallel builds. Use a locking strategy to avoid stomping on
# the same $tmpdepfile.
In particular, I propose the attached patch. Can you give it a try to check
whether it works?
Thanks,
Stefano
0001-depcomp-get-rid-of-file-lock-hack-for-Portland-Group.patch
Description: Text Data