Re: Rebuild issue with CheckLib()?

"Herzog, Tobias (G3-29)" <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <AM0PR05MB645088E5BF8C4591B3CD0BD59D5B9@AM0PR05MB6450.eurprd05.prod.outlook.com>
Python 3.5.3
SCons 4.1.0 (v4.1.0.post1.dc58c175da659d6c0bb3e049ba56fb42e77546cd)

Von: Scons-users <[email protected]> Im Auftrag von Bill Deegan
Gesendet: Mittwoch, 28. April 2021 17:45
An: SCons users mailing list <[email protected]>
Betreff: Re: [Scons-users] Rebuild issue with CheckLib()?

Which version of python?
Which version of SCons?

On Wed, Apr 28, 2021 at 1:00 AM Herzog, Tobias (G3-29) <[email protected]<mailto:[email protected]>> wrote:
Hi SCons-Users,

I discovered an issue (?) with missing rebuilds. It seems that rebuilds are not triggered, if the presence of an external lib is tested with the CheckLib Method.

I am using an SConstruct with the following content:

env = Environment(LIBPATH=['#mylib'])

conf = Configure(env)
if not conf.CheckLib('gtestd'):
    print('Error')
    Exit(1)
conf.Finish()

env.Append(LIBS=['gtestd'])
env.Program('test.cpp')

If you modify "mylib/gtestd.lib" (I am using MSVC compiler on Windows), no rebuild is triggered ("scons: `.' is up to date."). However the dependencies are detected correctly ("scons --tree=all"). Even with "-config=force" no rebuild is triggered. If I leave out the Configure section it works like expected.

Is this a bug or a feature? Maybe this is not a common use case, but I would expect a rebuild here.

Thanks,
Tobias
_______________________________________________
Scons-users mailing list
[email protected]<mailto:[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.