[Gtkradiant] scan-build scons
John Smith
lbalbalba at gmail.com
Tue Oct 16 03:22:47 EDT 2012
Thanks, but that doesnt work. If I understand correctly, scons clears
the environment when executed.
Also, I cant symlink gcc to point to something else, as I also need
the real compiler to actually be there. The analyzer works by
inserting a man-in-the-middle analyzer for analysis only, and then
proceeds to call the real compiler for compilation purposes. So I need
GCC to point to GCC, and not something else.
The link below describes describes a way around that (by explicitly
importing certain env vars, if I understand correctly).
http://stackoverflow.com/questions/9305356/how-can-i-make-clangs-scan-build-work-with-scons
But I dont understand enough about scons to make that work. If that
link makes sense to you, could you please tell me what file to edit
and what exactly to insert at what place in that file ?
Thanks,
Regards,
John Smith.
On Mon, Oct 15, 2012 at 10:53 PM, Timothee Besset <ttimo at ttimo.net> wrote:
> Try to pass those on the command line rather than in environment. E.g. scons CC=mycc CXX=mycxx
>
> That might work. Otherwise I would symlink gcc and g++ to what you are trying to call ( in some temp directory).
>
> Let us know if that works, it's likely to find an enormous amount of stuff :)
>
> TTimo
>
> On Oct 14, 2012, at 12:39, John Smith <lbalbalba at gmail.com> wrote:
>
>> Hi,
>>
>>
>> Im trying to run the LLVM/clang static source code analyzer
>> (scan-build) on gtkradiant. scan-build normally works by overriding
>> the environment variables CC and CXX, so you can run the analyzer this
>> way :
>>
>> scan-build make
>>
>> However, this approach does not seem to work with scons. Is there a
>> way I can override the compiler used when using scons ?
>>
>>
>> Regards,
>>
>>
>> John Smith
>> _______________________________________________
>> Gtkradiant mailing list
>> Gtkradiant at icculus.org
>> http://icculus.org/mailman/listinfo/gtkradiant
> _______________________________________________
> Gtkradiant mailing list
> Gtkradiant at icculus.org
> http://icculus.org/mailman/listinfo/gtkradiant
More information about the Gtkradiant
mailing list