[Scons-dev] Clang support

Paweł Tomulik ptomulik at meil.pw.edu.pl
Mon Jan 5 19:02:03 EST 2015


Looks like SCons is missing a "tool preference system", where each user 
(developer, not end user) could easily re-define by its own the 
preferred order of compiler toolchains. The same applies to other tools. 
Don't worry, there will always be room for discussion, for example "what 
should be the default preference order" :)

Best regards!

W dniu 06.01.2015 o 00:58, William Blevins pisze:
>
> Im not sure what percentage of linux devs use clang vs gcc, but my  
> personal experience is gcc is more widely used.
>
> Yet another gcc user,
> William
>
> On Jan 5, 2015 6:51 PM, "Russel Winder" <russel at winder.org.uk 
> <mailto:russel at winder.org.uk>> wrote:
>
>     On Mon, 2015-01-05 at 13:48 +0100, Paweł Tomulik wrote:
>     […]
>     > I have a project where I just set construction variables
>     CC=clang and
>     > CXX=clang++ and it works well (I check existence of these
>     compilers with
>     > SConf, so I don't need the Tool machinery to search for the compiler
>     > executables).
>     >
>     > Some time ago I also wrote these two tools:
>     >
>     > https://github.com/ptomulik/scons-tool-clang
>     > https://github.com/ptomulik/scons-tool-clangpp
>     >
>     > but for some (forgotten) reason I don't use them :)
>
>     This may work fine, but if SCons does not have tools called clang,
>     clang
>     ++, clanglink *AND* detection of clang for the cc, c++ and link tools,
>     then SCons has no credible support for Clang.
>
>     My real question is whether SCons should prefer clang over gcc for
>     Linux.
>
>     --
>     Russel.
>     =============================================================================
>     Dr Russel Winder      t: +44 20 7585 2200
>     <tel:%2B44%2020%207585%202200>   voip: sip:russel.winder at ekiga.net
>     <mailto:sip%3Arussel.winder at ekiga.net>
>     41 Buckmaster Road    m: +44 7770 465 077
>     <tel:%2B44%207770%20465%20077>   xmpp: russel at winder.org.uk
>     <mailto:russel at winder.org.uk>
>     London SW11 1EN, UK   w: www.russel.org.uk
>     <http://www.russel.org.uk> skype: russel_winder
>
>     _______________________________________________
>     Scons-dev mailing list
>     Scons-dev at scons.org <mailto:Scons-dev at scons.org>
>     https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
>
>
> _______________________________________________
> Scons-dev mailing list
> Scons-dev at scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev


-- 
Pawel Tomulik

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20150106/3f25dda4/attachment.html>


More information about the Scons-dev mailing list