LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 614 - Request to remove dependance on sed/flex/bison
Summary: Request to remove dependance on sed/flex/bison
Status: RESOLVED FIXED
Alias: None
Product: Build scripts
Classification: Unclassified
Component: autoconf (show other bugs)
Version: trunk
Hardware: All All
: P enhancement
Assignee: Reid Spencer
URL:
Keywords: new-feature, quality-of-implementation
Depends on:
Blocks:
 
Reported: 2005-08-05 13:26 PDT by Alexander Friedman
Modified: 2010-02-22 12:48 PST (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Friedman 2005-08-05 13:26:07 PDT
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
Comment 1 Chris Lattner 2005-08-05 13:28:51 PDT
FWIW, I totally agree.  We just need someone to whip up a patch :)
Comment 2 Reid Spencer 2005-08-11 12:46:55 PDT
Mine
Comment 3 Reid Spencer 2005-08-11 12:58:00 PDT
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.