Adding a build-dependency on flex

Andras Mantia amantia at kde.org
Sat Jun 18 19:41:31 UTC 2011


On Friday, June 17, 2011 20:12:48 Nicolás Alvarez wrote:
> Hi devs,
> 
> I'm working on some stuff in the CMake parser which involves changes
> to the lexer. It's written in flex, and currently taken unmodified
> from the CMake project.
> 
> We currently ship both the generated code (.c) and the flex source
> (.in.l) in the git repository. With current versions of flex, the
> .in.l file doesn't even work; and after fixing it, flex unsurprisingly
> generates a different .c than we have now.

In KDE it was common to commit the generated files if flex was needed. I 
think the main reason was to avoid problems resulting from different 
versions of flex and bison.

If the files don't change often, than just generate yourself and commit 
the generated files.

Andras





More information about the KDevelop-devel mailing list