Changeset 208954 in webkit


Ignore:
Timestamp:
Nov 21, 2016 5:57:30 PM (7 years ago)
Author:
Konstantin Tokarev
Message:

Disable #line markers in bison output on Windows
https://bugs.webkit.org/show_bug.cgi?id=164973

Reviewed by Darin Adler.

New bison versions since 3.0 have bug that causes unescaped paths
to be printed in #line directives. On Windows CMake passes absolute
paths to bison that have backslashes in them, leading to compiler
errors or warnings because of unrecognized escape sequences.

No new tests needed.

  • css/makegrammar.pl:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r208948 r208954  
     12016-11-21  Konstantin Tokarev  <annulen@yandex.ru>
     2
     3        Disable #line markers in bison output on Windows
     4        https://bugs.webkit.org/show_bug.cgi?id=164973
     5
     6        Reviewed by Darin Adler.
     7
     8        New bison versions since 3.0 have bug that causes unescaped paths
     9        to be printed in #line directives. On Windows CMake passes absolute
     10        paths to bison that have backslashes in them, leading to compiler
     11        errors or warnings because of unrecognized escape sequences.
     12
     13        No new tests needed.
     14
     15        * css/makegrammar.pl:
     16
    1172016-11-21  Olivier Blin  <olivier.blin@softathome.com>
    218
  • trunk/Source/WebCore/css/makegrammar.pl

    r206904 r208954  
    7676
    7777my $fileBase = File::Spec->join($outputDir, $filename);
    78 system("\"$bison\" -d -p $symbolsPrefix $grammarFilePath -o $fileBase.cpp");
     78my @bisonCommand = ($bison, "-d", "-p", $symbolsPrefix, $grammarFilePath, "-o", "$fileBase.cpp");
     79push @bisonCommand, "--no-lines" if $^O eq "MSWin32"; # Work around bug in bison >= 3.0 on Windows where it puts backslashes into #line directives.
     80system(@bisonCommand) == 0 or die;
    7981
    8082open HEADER, ">$fileBase.h" or die;
Note: See TracChangeset for help on using the changeset viewer.