summaryrefslogtreecommitdiff
path: root/Source/WebCore/css/makegrammar.pl
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/css/makegrammar.pl')
-rw-r--r--Source/WebCore/css/makegrammar.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/WebCore/css/makegrammar.pl b/Source/WebCore/css/makegrammar.pl
index 47cbc2f47..5d63b0810 100644
--- a/Source/WebCore/css/makegrammar.pl
+++ b/Source/WebCore/css/makegrammar.pl
@@ -73,7 +73,9 @@ if ($suffix eq ".y.in") {
}
my $fileBase = File::Spec->join($outputDir, $filename);
-system("\"$bison\" -d -p $symbolsPrefix $grammarFilePath -o $fileBase.cpp");
+my @bisonCommand = ($bison, "-d", "-p", $symbolsPrefix, $grammarFilePath, "-o", "$fileBase.cpp");
+push @bisonCommand, "--no-lines" if $^O eq "MSWin32"; # Work around bug in bison >= 3.0 on Windows where it puts backslashes into #line directives.
+system(@bisonCommand) == 0 or die;
open HEADER, ">$fileBase.h" or die;
print HEADER << "EOF";