| In order to have MSVC and MinGW (and the Intel compiler) co-exist in SConstruct, I have changed it to (1) detect user's choice of tools either from environment or from option (withMSVC etc.), (2) re-construct the commonEnvironment from scratch, (3) add specific tools suitable to the user's choice to the commonEnvironment programmatically.
I think the best thing is to add bison and and flex to the tools in the appropriate platform cases.
Hope this helps,
Mike
-----Original Message-----
>From: Steven Yi
>Sent: Feb 25, 2008 4:32 PM
>To: Developer discussions
>Subject: [Cs-dev] Broken Build when using Flex/Bison
>
>Hi All,
>
>Recent changes to SConstruct broke detection of flex/bison (as far as
>I can tell that is the problem). During configuration, Scons shows:
>
>SCons tools on this platform: ['mingw', 'gcc', 'g++', 'gnulink',
>'ar', 'gas', 'm4', 'swig', 'javac', 'jar', 'mingw', 'gcc', 'g++',
>'gnulink', 'ar', 'gas', 'm4']
>
>
>which show the mingw tool set twice and no detection of flex/bison.
>Because of this I get:
>
>scons: *** While building `['Engine\\csound_orclex.c']' from
>`['Engine\\csound_orc.l']': Don't know how to build from a source file
>with suffix `.l'. Expected a suffix in this list: ['.i'].
>
>
>I think this is all due to the change to hardcode the tools on the
>platforms for MinGW?
>
>(BTW: For anyone on Windows, the version of flex and bison I am using
>are from http://gnuwin32.sourceforge.net/)
>
>Thanks!
>steven
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by: Microsoft
>Defy all challenges. Microsoft(R) Visual Studio 2008.
>http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |