[Scons-users] HOWTO select a toolchain
William Blevins
wblevins001 at gmail.com
Mon Jan 4 15:42:17 EST 2016
On Mon, Jan 4, 2016 at 8:32 PM, Stefan Seefeld <stefan at seefeld.name> wrote:
> On 04.01.2016 15:09, William Blevins wrote:
> > The User Guide has a section at the bottom that lists all the internal
> > variables. See Appendix
> > A http://www.scons.org/doc/HTML/scons-user/apa.html
> >
> > For example, to change the C++ compiler change the CXX variable and to
> > set the C compiler set the CC variable.
>
> Thanks. And thanks Marc for the details. Not having to set the SH*
> variables was exactly one point I was wondering about.
>
If you are curious as to how the default link variables are setup, then
please see
https://bitbucket.org/scons/scons/src/0d265ab5bab28eda792c24e054e4d02f24ebb338/src/engine/SCons/Tool/link.py?at=default&fileviewer=file-view-default
The smart_link function is the important part.
>
>
> And sorry to insist, but I still haven't found the answer to this:
>
> >
> >
> > > And a related question: The SCons man-page
> > > (http://www.scons.org/doc/HTML/scons-man.html) mentions "tool
> > > specifications". Are they available as "current toolchain"
> > properties
> > > inside SConscripts ? I'd like to add my own flags based on
> which
> > > toolchain is selected, so having access to that classifier
> would
> > > be useful.
> >
>
> The reason I'm asking is because I'd like to define portable "features",
> which map to compiler-specific flags. If I were able to query the
> toolchain along the "type" as discussed in the man page, that might help
> me a lot.
>
> Thanks,
> Stefan
>
> --
>
> ...ich hab' noch einen Koffer in Berlin...
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160104/c88c7940/attachment-0001.html>
More information about the Scons-users
mailing list