Re: SCons behavior with version information in target name

Hans-Christian Wild <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <CA+rbir-H_zCYyAqU96+BLBZujmR2Y1DATg7fHrSX6iAZS6O3Qw@mail.gmail.com>
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 <[email protected]>
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 <[email protected]>
> 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 <[email protected]>
>> 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
>>> [email protected]
>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>>
>> _______________________________________________
>> Scons-users mailing list
>> [email protected]
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.