[Scons-users] Strage behavior of Alias() method for executables on unix platforms

Gary Oberbrunner garyo at oberbrunner.com
Thu Jul 5 12:35:03 EDT 2012


On Thu, Jul 5, 2012 at 12:24 PM, Managan, Rob <managan1 at llnl.gov> wrote:

> With the alias I get:

>

> mantle[11] scons --tree=prune some_program

> scons: Reading SConscript files ...

> scons: done reading SConscript files.

> scons: Building targets ...

> g++ -o build/program.o -c src/program.cpp

> +-some_program

> +-build/program.o

> | +-src/program.cpp


I see, there is a name collision between the empty alias and the
actual program name. Notice how it never links the program. I
suspect somewhere there's a Node 'some_program' that's getting mapped
incorrectly to the alias. The short answer is of course don't use
alias names that match real file names, but you're supposed to be safe
if the alias doesn't match a filename in a subdir. So there's
definitely some sort of SCons bug here.

--
Gary


More information about the Scons-users mailing list