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

Ian Romanick idr at freedesktop.org
Tue Sep 7 11:35:45 PDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Miles Bader wrote:
> Ian Romanick <idr at freedesktop.org> writes:
>>> 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.
> 
> How about putting "generated" files like that into a separate
> subdirectory (e.g. ".../prebuilt"), which is ignored by the non-windows
> builds?
> 
> Then on windows, it can simply do "cp .../prebuilt/foo .../foo" instead
> of generating the file using bison or whatever.

Most (all?) of the people working on the flex and bison files are on
Linux.  Because of that, I can almost guarantee the special "for
Windows" copies that aren't used on Linux will lag.  In some ways,
that's even worse because we'll likely end up with various types of
spurious bug reports from people trying to build on Windows.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyGhf4ACgkQX1gOwKyEAw+f8wCcCrt7BJ6+xoyWk83zjHrahlff
PPwAniz6Y8DHNcvLbyww1iLaz3+XL2cD
=VvOE
-----END PGP SIGNATURE-----


More information about the mesa-dev mailing list