I posted this to the list, and also talked to you guys on irc, and was asked to submit a feature request. Here is my original message: --- At the moment, LLVM includes the .l, .y sources that are compiled by flex and biston via make. This is fine for most unix developers. For windows developers, it's a bit more of a pain to download flex/bison, but is still a one-time thing. However, anyone releasing an llvm frontend will require their users to have flex/bison. Most (but not all) unix boxes have them, but almost no windows boxes have them. This requires either 1) Forcing the user to dowload flex/bison (bad) 2) Distributing flex/bison with the front-end (not as bad, but a pain) 3) or, and this seems like a simple fix, just distribute the output of flex and bison along with the source. This is analagous to distributing "configure" along with "configure.ac". --- The right solution is obviosly the 3'd one
FWIW, I totally agree. We just need someone to whip up a patch :)
Mine
A quick look at this indicates that it isn't completely trivial to save the output of flex/bison in the sources. When OBJDIR != SRCDIR, flex gets confused and code changes are required. This is going to take some monkeying around so I'll have to wait until the weekend to resolve this. Reid.
Implemented. Patches are here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20050822/027982.html http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20050822/027983.html http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20050822/027984.html http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20050822/027985.html http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20050822/027986.html