Re: [Scons-dev] SCons and Clang

2017-06-21 Thread Jason Kenny
cool.


As a side note... for a different change set the icc ( intelc.py tool ) can be 
updated to use clang on the mac.


Jason



From: Scons-dev <scons-dev-boun...@scons.org> on behalf of Russel Winder 
<rus...@winder.org.uk>
Sent: Wednesday, June 21, 2017 10:15 AM
To: SCons developer list
Subject: Re: [Scons-dev] SCons and Clang

On Wed, 2017-06-21 at 15:49 +0100, Russel Winder wrote:
>
[…]
> I got active and picked up Paweł Tomulik's clang and clang++ tools and
> added
> some basic tests. I am going to put forward a pull request so we have
> something in to evolve.

Pull request at https://bitbucket.org/scons/scons/pull-requests/483/initial-
Initial commit for bringing Paweł Tomulik's clang and clang++ tools into the 
mainline.<https://bitbucket.org/scons/scons/pull-requests/483/initial->
bitbucket.org
I picked up Paweł's tools from 
[https://github.com/ptomulik/scons-tool-clang](https://github.com/ptomulik/scons-tool-clang)
 and 
[https://github.com/ptomulik/scons-tool-clangpp](https://github.com/ptomulik/scons-tool-clangpp)
 added some tests to make this pull request. I checked Python 2 and Python 3 of 
the new stuff and ran all the tests using Python 2 on Debian Sid, Fedora 
Rawhide and OSX El Capitan with no errors associated with this pull request. I 
picked up the XML files by copying the extant GCC ones and amending them a bit. 
Docs validation passes.



commit-for-bringing-pawe-tomuliks/diff

>
--
Russel.
=
Dr Russel Winder t:+44 20 7585 2200   voip:sip:
russel.win...@ekiga.net
41 Buckmaster Road   m:+44 7770 465 077   xmpp:rus...@winder.org.uk
London SW11 1EN, UK  w: www.russel.org.uk<http://www.russel.org.uk> 
skype:russel_winder
Russel Winder's Website<http://www.russel.org.uk/>
www.russel.org.uk
After a short drinks break, there was a period of lightning talks, attenders 
had the opportunity to "pitch" themselves and their work. Whilst the timetable 
scheduled ...


___
Scons-dev mailing list
Scons-dev@scons.org
https://pairlist2.pair.net/mailman/listinfo/scons-dev


Re: [Scons-dev] SCons and Clang

2017-06-21 Thread Russel Winder
On Wed, 2017-06-21 at 15:49 +0100, Russel Winder wrote:
> 
[…]
> I got active and picked up Paweł Tomulik's clang and clang++ tools and
> added
> some basic tests. I am going to put forward a pull request so we have
> something in to evolve. 

Pull request at https://bitbucket.org/scons/scons/pull-requests/483/initial-
commit-for-bringing-pawe-tomuliks/diff

> 
-- 
Russel.
=
Dr Russel Winder t:+44 20 7585 2200   voip:sip:
russel.win...@ekiga.net
41 Buckmaster Road   m:+44 7770 465 077   xmpp:rus...@winder.org.uk
London SW11 1EN, UK  w: www.russel.org.uk skype:russel_winder

signature.asc
Description: This is a digitally signed message part
___
Scons-dev mailing list
Scons-dev@scons.org
https://pairlist2.pair.net/mailman/listinfo/scons-dev


Re: [Scons-dev] SCons and Clang

2017-06-21 Thread Russel Winder
On Wed, 2017-06-21 at 15:58 +0200, Alexandre Feblot wrote:
> Hi there,
> 
> Would this only support compiling with clang, or would you also intend in
> some ways to handle clang static analysis tool (scan-build wrapper which
> btw can use clang or gcc as a compiler)?
> 
Initially just the compiler, I have got clang and clang++ tool from Paweł
Tomulik and am preparing a pull request. This should give a base from which
to build something more Clangish.

-- 
Russel.
=
Dr Russel Winder t:+44 20 7585 2200   voip:sip:
russel.win...@ekiga.net
41 Buckmaster Road   m:+44 7770 465 077   xmpp:rus...@winder.org.uk
London SW11 1EN, UK  w: www.russel.org.uk skype:russel_winder

signature.asc
Description: This is a digitally signed message part
___
Scons-dev mailing list
Scons-dev@scons.org
https://pairlist2.pair.net/mailman/listinfo/scons-dev


Re: [Scons-dev] SCons and Clang

2017-06-21 Thread Alexandre Feblot
Hi there,

Would this only support compiling with clang, or would you also intend in
some ways to handle clang static analysis tool (scan-build wrapper which
btw can use clang or gcc as a compiler)?

2017-06-21 15:15 GMT+02:00 Jason Kenny <dragon...@live.com>:

> I 100% agree.
>
> I have a tool in Parts here: https://bitbucket.org/sconsparts/parts/src/
> 6a57ea6ae48acf491cda5ab8c1d45fd53d4543c2/parts/tools/clang.
> py?at=master=file-view-default
>
> There are some different options that can show up and a great options to
> have ( given we have some better configuration support in SCons ) is to
> have added the to force color output. This is also true for gcc in newer
> versions. The force of color allows for the useful and pretty output that
> clang provides to the users, that is turned off otherwise, because we are
> redirecting text output through a pipe
>
> Jason
>
> -Original Message-
> From: Scons-dev [mailto:scons-dev-boun...@scons.org] On Behalf Of Russel
> Winder
> Sent: Wednesday, June 21, 2017 6:22 AM
> To: SCons_Developers <scons-dev@scons.org>
> Subject: [Scons-dev] SCons and Clang
>
> For SCons 3.0 we really ought to have clang and clang++ tools as standard
> out of the box with no hacking needed. As I understand it, Clang follows
> GCC command line options, though I guess there are variations. So as a
> first stab, I'll create clang.py and clang++.py by copying and amending
> gcc.py and
> g++.py.
>
> Assuming someone hasn't already done this, and assuming no-one can see a
> fault with the line of reasoning.
>
> --
> Russel.
> 
> =
> Dr Russel Winder t:+44 20 7585 2200   voip:sip:
> russel.win...@ekiga.net
> 41 Buckmaster Road   m:+44 7770 465 077   xmpp:rus...@winder.org.uk
> London SW11 1EN, UK  w: www.russel.org.uk skype:russel_winder
> ___
> Scons-dev mailing list
> Scons-dev@scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
___
Scons-dev mailing list
Scons-dev@scons.org
https://pairlist2.pair.net/mailman/listinfo/scons-dev


Re: [Scons-dev] SCons and Clang

2017-06-21 Thread Jason Kenny
I 100% agree.

I have a tool in Parts here: 
https://bitbucket.org/sconsparts/parts/src/6a57ea6ae48acf491cda5ab8c1d45fd53d4543c2/parts/tools/clang.py?at=master=file-view-default
 

There are some different options that can show up and a great options to have ( 
given we have some better configuration support in SCons ) is to have added the 
to force color output. This is also true for gcc in newer versions. The force 
of color allows for the useful and pretty output that clang provides to the 
users, that is turned off otherwise, because we are redirecting text output 
through a pipe 

Jason

-Original Message-
From: Scons-dev [mailto:scons-dev-boun...@scons.org] On Behalf Of Russel Winder
Sent: Wednesday, June 21, 2017 6:22 AM
To: SCons_Developers <scons-dev@scons.org>
Subject: [Scons-dev] SCons and Clang

For SCons 3.0 we really ought to have clang and clang++ tools as standard out 
of the box with no hacking needed. As I understand it, Clang follows GCC 
command line options, though I guess there are variations. So as a first stab, 
I'll create clang.py and clang++.py by copying and amending gcc.py and
g++.py.

Assuming someone hasn't already done this, and assuming no-one can see a fault 
with the line of reasoning.

--
Russel.
=
Dr Russel Winder t:+44 20 7585 2200   voip:sip:
russel.win...@ekiga.net
41 Buckmaster Road   m:+44 7770 465 077   xmpp:rus...@winder.org.uk
London SW11 1EN, UK  w: www.russel.org.uk skype:russel_winder
___
Scons-dev mailing list
Scons-dev@scons.org
https://pairlist2.pair.net/mailman/listinfo/scons-dev


[Scons-dev] SCons and Clang

2017-06-21 Thread Russel Winder
For SCons 3.0 we really ought to have clang and clang++ tools as standard
out of the box with no hacking needed. As I understand it, Clang follows GCC
command line options, though I guess there are variations. So as a first
stab, I'll create clang.py and clang++.py by copying and amending gcc.py and
g++.py.

Assuming someone hasn't already done this, and assuming no-one can see a
fault with the line of reasoning.

-- 
Russel.
=
Dr Russel Winder t:+44 20 7585 2200   voip:sip:
russel.win...@ekiga.net
41 Buckmaster Road   m:+44 7770 465 077   xmpp:rus...@winder.org.uk
London SW11 1EN, UK  w: www.russel.org.uk skype:russel_winder

signature.asc
Description: This is a digitally signed message part
___
Scons-dev mailing list
Scons-dev@scons.org
https://pairlist2.pair.net/mailman/listinfo/scons-dev


Re: [Scons-dev] SCons and Clang

2017-06-12 Thread Paweł Tomulik
W dniu 12.06.2017 o 14:39, Russel Winder pisze:
> On Mon, 2017-06-12 at 12:51 +0200, Paweł Tomulik wrote:
> […]
>> I recall, I prepared these two modules for some reason
>>
>> https://github.com/ptomulik/scons-tool-clang
>>
>> https://github.com/ptomulik/scons-tool-clangpp
>>
>> it was long long ago, but I think there was something to it.
>>
> I spotted those but they looked more like tools to get round the lack of
> integration of clang rather than proposals for proper integration. Or did I
> misread things?
>
>
>
> ___
> Scons-dev mailing list
> Scons-dev@scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev

I think you're right...

-- 
Paweł Tomulik, tel. (22) 234 7925
Instytut Techniki Lotniczej i Mechaniki Stosowanej
Politechnika Warszawska



signature.asc
Description: OpenPGP digital signature
___
Scons-dev mailing list
Scons-dev@scons.org
https://pairlist2.pair.net/mailman/listinfo/scons-dev


Re: [Scons-dev] SCons and Clang

2017-06-12 Thread Russel Winder
On Mon, 2017-06-12 at 12:51 +0200, Paweł Tomulik wrote:
> 
[…]
> I recall, I prepared these two modules for some reason
> 
> https://github.com/ptomulik/scons-tool-clang
> 
> https://github.com/ptomulik/scons-tool-clangpp
> 
> it was long long ago, but I think there was something to it.
> 

I spotted those but they looked more like tools to get round the lack of
integration of clang rather than proposals for proper integration. Or did I
misread things?

-- 
Russel.
=
Dr Russel Winder t:+44 20 7585 2200   voip:sip:
russel.win...@ekiga.net
41 Buckmaster Road   m:+44 7770 465 077   xmpp:rus...@winder.org.uk
London SW11 1EN, UK  w: www.russel.org.uk skype:russel_winder

signature.asc
Description: This is a digitally signed message part
___
Scons-dev mailing list
Scons-dev@scons.org
https://pairlist2.pair.net/mailman/listinfo/scons-dev