Adding a build-dependency on flex

Aleix Pol aleixpol at kde.org
Sat Jun 18 19:45:12 UTC 2011


2011/6/18 Nicolás Alvarez <nicolas.alvarez at gmail.com>

> 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.
>
> It's being annoying to have to manually run flex to regenerate the .c
> between changing something and running 'make'. I think it would be
> better to ship only the .l file and run flex at compile time. But this
> would mean adding a required compile-time dependency on flex to
> kdevelop. What do you think about it? Is it an acceptable dep to add?
> Or should I just continue keeping the .l and .c in sync in every
> commit?
>
> --
> Nicolas
>
> --
> KDevelop-devel mailing list
> KDevelop-devel at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
>

As I said on IRC, I don't think we should add this dependency. Just version
the generated file and we all can be happy.

Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20110618/646da3c7/attachment.html>


More information about the KDevelop-devel mailing list