[Scons-users] SCons behavior with version information in target name

Hans-Christian Wild hchr.wild at gmail.com
Wed Jun 24 21:09:08 EDT 2020


Similar on linux:

(Sconsctruct)
env = Environment(PROGSUFFIX='.elf')
filename = 'program-1.0.0'
program = env.Program(filename, ['main.c'])

$ scons
gcc -o program-1.0.0*.elf* main.o

(With Filename = 'program-1.0.0-beta')
scons
gcc -o program-1.0.0-beta main.o
(PROGSUFFIX is no longer present)


On Thu, Jun 25, 2020 at 2:40 AM Hans-Christian Wild <hchr.wild at gmail.com>
wrote:

> Win10
> Python 3.8.2 (from https://www.python.org/)
> SCons 3.1.2
> MinGW-64 GCC
> Git4Windows Bash (=msys2)
> https://github.com/hchrwild/scons-dot-extension/blob/master/SConstruct
>
> On Thu, Jun 25, 2020 at 1:56 AM Bill Deegan <bill at baddogconsulting.com>
> wrote:
>
>> OS?
>> Python Version?
>> SCons version?
>> Compiler?
>>
>> Guessing mingw?
>> I wouldn't expect one but not the other to do this.
>> Can you push up a demo repo on github for us to try?
>>
>> On Wed, Jun 24, 2020 at 3:31 PM Hans-Christian Wild <hchr.wild at gmail.com>
>> wrote:
>>
>>> Hi, in the following example:
>>>
>>> env = Environment()
>>> filename = 'program-1.0'
>>> program = env.Program(filename, ['main.c'])
>>>
>>> SCons behaves fine:
>>>
>>> $ scons
>>> gcc -o main.o -c main.c
>>> gcc -o program-1.0*.exe* main.o
>>>
>>> When I instead set `filename = 'program-1.0*-beta*'`, the behavior
>>> changes however:
>>>
>>> $ scons
>>> gcc -o program-1.0-beta main.o
>>>
>>> The file extension is now missing. The correct name would be
>>> program-1.0-beta*.exe*.
>>>
>>> Is this expected?
>>>
>>> _______________________________________________
>>> Scons-users mailing list
>>> Scons-users at scons.org
>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>>
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20200625/2068432e/attachment-0001.html>


More information about the Scons-users mailing list