automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

small depcomp patch


From: Ryan T. Sammartino
Subject: small depcomp patch
Date: Thu, 6 Dec 2001 14:53:03 -0800
User-agent: Mutt/1.3.23.1i

With MS VCrap++, if you use the /Gm, /Gi or /ZI options, it uses some
.idb file to do whatever it is these options do.  Unfortunately, depcomp
launches two cl's... one to do dependencies, and one to do the actual
compiling, and one gets a lock on these .idb files that causes the other
to fail.  If the compiling one doesn't get a lock on that file first,
your compile will fail.  To remedy the problem the following patch
removes any of the above options from the preprocess step so that the
preprocessor doesn't try to lock these silly .idb files.



--- depcomp.orig        Tue Dec  4 09:47:26 2001
+++ depcomp     Thu Dec  6 14:36:54 2001
@@ -382,6 +382,21 @@
       done
       ;;
     esac
+    for arg
+    do
+      case "$arg" in
+      "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
+       set fnord "$@"
+       shift
+       shift
+       ;;
+      *)
+       set fnord "$@" "$arg"
+       shift
+       shift
+       ;;
+      esac
+    done
     "$@" -E |
     sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u 
\\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
   ) &


-- 
Ryan T. Sammartino (address@hidden)
http://members.shaw.ca/ryants/
Alimony is the curse of the writing classes.
                -- Norman Mailer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]