[Mesa-dev] glsl2: Remove generated files from git

José Fonseca jfonseca at vmware.com
Mon Sep 6 07:41:18 PDT 2010

On Sun, 2010-09-05 at 20:02 -0700, Matt Turner wrote:
> On Sun, Sep 5, 2010 at 10:35 PM, Ian Romanick <idr at freedesktop.org> wrote:
> > On Sep 5, 2010, at 6:40 PM, Tom Stellard <tstellar at gmail.com> wrote:
> >
> >> Hi,
> >>
> >> These files generated by bison and flex are different for me than the
> >> ones checked in to git:
> >>
> >> src/glsl/glcpp/glcpp-lex.c
> >> src/glsl/glcpp/glcpp-parse.c
> >> src/glsl/glcpp/glcpp-parse.h
> >> src/glsl/glsl_lexer.cpp
> >> src/glsl/glsl_parser.cpp
> >>
> >> This is causing some annoyances for me when I do commits or switch
> >> branches. Is there any reason why these files can't be removed from git?
> >
> > One word: Windows. Welcome to my world.
> I hear you (and I know you'd love to kill these off too), but bison
> and flex run on Windows too. This seems like a false reason to me.
> Matt

It's easy to find/produce recent cygwin/msys ports of bison/flex, but
these builds munge paths (ie., spaces, slashes, driver letters) and it
would also imply adding the build dependency of cygwin/msys -- although
these environments try to capture the best of both Unix/Windows I found
that in practice it forces the developer coping with the worst of them.

There were also some native ports of bison/flex, but I haven't
researched on that recently.

If you (Matt or Ian) could provide me a patch that invokes bison/flex at
compile time, I'll look into this. 


More information about the mesa-dev mailing list