[Scons-users] scons using full paths in build with repositories

Tom Tanner TTANNER2 at bloomberg.net
Tue Dec 2 06:03:00 EST 2014


Doing this:
> pwd
/home/me/mydir/test/build
> cat ../SConstruct:
Program('test', 'test.cc')
> scons -Y ..
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o test.o -c /home/me/mydir/test/test.cc
g++ -o test test.o
scons: done building targets.

What I'd like it to do is to do:
g++ -o test.o -c ../test.cc

as the use of the full path causes all sorts of fun with dbx, gdb, purify, <insert tool here> when the .o file gets put into the build cache and then pulled out again in a completely different place.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20141202/84c805b3/attachment.html>


More information about the Scons-users mailing list