Title: [130949] trunk/Source/WebCore
Revision
130949
Author
t...@chromium.org
Date
2012-10-10 13:31:02 -0700 (Wed, 10 Oct 2012)

Log Message

Unreviewed, speculative build fix for Qt Win.

* css/makegrammar.pl: Rather than making a temp file, use a pipe to
pass data from gcc to the final output file.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (130948 => 130949)


--- trunk/Source/WebCore/ChangeLog	2012-10-10 20:28:30 UTC (rev 130948)
+++ trunk/Source/WebCore/ChangeLog	2012-10-10 20:31:02 UTC (rev 130949)
@@ -1,3 +1,10 @@
+2012-10-10  Tony Chang  <t...@chromium.org>
+
+        Unreviewed, speculative build fix for Qt Win.
+
+        * css/makegrammar.pl: Rather than making a temp file, use a pipe to
+        pass data from gcc to the final output file.
+
 2012-10-10  Brady Eidson  <beid...@apple.com>
 
         Switch CachedResource over from SharedBuffer to a new ResourceBuffer

Modified: trunk/Source/WebCore/css/makegrammar.pl (130948 => 130949)


--- trunk/Source/WebCore/css/makegrammar.pl	2012-10-10 20:28:30 UTC (rev 130948)
+++ trunk/Source/WebCore/css/makegrammar.pl	2012-10-10 20:31:02 UTC (rev 130949)
@@ -25,6 +25,7 @@
 use File::Basename;
 use File::Spec;
 use Getopt::Long;
+use IO::File;
 
 require Config;
 
@@ -58,21 +59,20 @@
     my $grammarFileOutPath = File::Spec->join($outputDir, "$filename.y");
     my $featureFlags = "-D " . join(" -D ", split(" ", $extraDefines));
 
-    system($gcc . " -E -P -x c $grammarFilePath $featureFlags > $grammarFileOutPath.processed" );
+    my $processed = new IO::File;
+    open $processed, "$gcc -E -P -x c $grammarFilePath $featureFlags|";
 
     open GRAMMAR, ">$grammarFileOutPath" or die;
     open INCLUDES, "<$grammarFileIncludesPath" or die;
-    open PROCESSED, "<$grammarFileOutPath.processed" or die;
 
     while (<INCLUDES>) {
         print GRAMMAR;
     }
-    while (<PROCESSED>) {
+    while (<$processed>) {
         print GRAMMAR;
     }
 
     close GRAMMAR;
-    unlink("$grammarFileOutPath.processed");
     $grammarFilePath = $grammarFileOutPath;
 }
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to