[Scons-users] scons and clang++

Gary Oberbrunner garyo at oberbrunner.com
Thu Jul 17 07:57:29 EDT 2014


There isn't any magic; it still seems to me likely it's something in your
shell environment (not construction environment).  You're sure you did
env['ENV'] = os.environ after constructing the environment?  Is this
causing failures in the main part of your build, or just in SConf (i.e.
Configure())?

I don't see a call to env = conf.Finish() after your Configure() call; is
that just a cut/paste problem or is it really missing?  See the man page
under Configure Contexts for how to use Configure().  All of your configure
checks should be between Configure() and conf.Finish().

I suggest trying a simple SConstruct without using Configure() and see if
that works.



On Thu, Jul 17, 2014 at 7:29 AM, Florian Lindner <mailinglists at xgm.de>
wrote:

> Hello,
>
> I find scons more and more confusing when it comes to clang interaction.
>
> It seems scons is doing some magic when env["CXX"] = "clang". Magic it does
> not do, when CXX = clang++. Therefore it seems to work only when you set
> your compiler to clang.
>
> It works fine as long as I don't add any CCFLAGS to the environment. But as
> soon as I use clang and add the line
>
> env.Append(CCFLAGS = ["-stdlib=libc++"])
>
> it fails with not finding boost/array.hpp which actually is in
> /usr/include/boost/array.hpp.
>
> When I uncomment this line above it finds it.
>
> Anybody can shed some light on this for me?
>
> Regards,
> Florian
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> http://four.pairlist.net/mailman/listinfo/scons-users
>



-- 
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20140717/e5c6b35a/attachment.html>


More information about the Scons-users mailing list