This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

small depcomp patch



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 (ryants@shaw.ca)
http://members.shaw.ca/ryants/
Alimony is the curse of the writing classes.
		-- Norman Mailer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]