[LLVMdev] Including flex/bison output in cvs
Jeff Cohen
jeffc at jolt-lang.org
Fri Jul 1 09:19:33 PDT 2005
Andreas Fredriksson wrote:
>On 6/29/05, Chris Lattner <sabre at nondot.org> wrote:
>
>
>>On Mon, 27 Jun 2005, Alexander Friedman wrote:
>>
>>
>>>Hi all,
>>>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".
>>>
>>>What do you guys think?
>>>
>>>
>>I agree that #1 and #2 are not wonderful solutions. If including the
>>output of bison/flex in the source distro will fix the problem for you, I
>>would support that. There are build changes required though and may be
>>incompatibilities between unix bison and windows bison. If these were
>>worked out and solved, I would like to see this happen :)
>>
>>
>
>In my experience the only difference between recent bison versions on
>unix vs win32 is the inclusion of unistd (for isatty()).
>
>This is easily solved by adding a dummy unistd.h header which either
>defines isatty as a macro which always evaluates to zero, or actually
>implementing the function in a separate source file for win32. The
>first option would be preferred since the only required change would
>be an added include path for win32 in the makefile.
>
>
There already is a win32/unistd.h for precisely this reason, though it
has no (and needs no) actual code.
>// Andreas
>
>
>
More information about the llvm-dev
mailing list