[Scons-users] Strage behavior of Alias() method for executables on unix platforms
Alexey Petruchik
i100500 at gmail.com
Thu Jul 5 07:15:22 EDT 2012
Actually variant_dir in this example is useless. Removing variant_dir
changes nothing because "scons some_program" still works, but this time
like "scons src/some_program". And I wonder how expected behavior could
be non consistent across multiple platforms.
On Thu, Jul 5, 2012 at 4:17 AM, Greg Ward <greg at gerg.ca> wrote:
> On 05 July 2012, Alexey Petruchik said:
> > Hi, everybody. Noticed one strange behavior in scons. He is very simple
> > test project: https://bitbucket.org/stopiccot/scons_alias_bug2
> > There are two targets in it. Because of "build" variant dir for building
> > program I need to write to terminal "scons build/some_program" or "scons
> > build/libsome_library.dylib" (I'm using mac) to build this targets. I've
> > added two empty aliases 'some_program' and 'some_library'. And when I
> write
> > to console "scons some_library" I get "Nothing to be done for
> > `some_library'." as expected because I haven't assigned anything for this
> > alias but for "scons some_program" it actually builds program target as
> if
> > I had wrote "scons build/some_program".
>
> Are you using VariantDir() to put things in build/? If so, I believe
> you are seeing expected behaviour here.
>
> However, it's unclear what SCons is supposed to do if you define an
> Alias with the same name as a target file. Sounds like the file takes
> precedence over the alias. Would be nice if it printed a warning when
> you do this.
>
> Greg
> --
> Greg Ward http://www.gerg.ca/
> I'm on a strict vegetarian diet -- I only eat vegetarians.
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> http://four.pairlist.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20120705/1f1fcae4/attachment.htm>
More information about the Scons-users
mailing list