[Scons-users] dry runs and Configure

Mats Wichmann mats at wichmann.us
Wed Aug 2 07:28:46 EDT 2017


On 08/01/2017 03:49 PM, Bill Deegan wrote:
> Would scons -k -n work for you?

well, no, because it still quits at that point (either because "continue
as much as possible" left nothing possible, or just because it hits the
Exit line)

> 
> On Tue, Aug 1, 2017 at 2:13 PM, Mats Wichmann <mats at wichmann.us> wrote:
> 
>>
>> _still_ trying to figure out how some things are messed up in this
>> build. Here's one question. Some code does this... (seems broken anyway
>> in a cross-compile environment, where CheckLib ought to check against a
>> target lib, but that's not the topic here, that's a different problem to
>> solve).
>>
>>         conf = Configure(lib_env.Clone(LIBS=[]))
>>
>>         if not conf.CheckLib('boost_thread', language='C++'):
>>             Exit('Did not find boost_thread, exiting!')
>>
>>         if not conf.CheckLib('boost_system', language='C++'):
>>             Exit('Did not find boost_system, exiting!')
>>
>>
>> Running "scons -n" dies with:
>>
>> scons: *** Cannot update configure test ".sconf_temp/conftest_0.cpp"
>> within a dry-run.
>>
>> and then quits, kind of defeating the purpose of using a dry run.
>>
>> (the error line is the one of the first CheckLib)
>>
>> is there a best-practices approach to this? namely, to include
>> configure-style tests, but not to not break dry-run in doing so?
>> _______________________________________________
>> 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
> 



More information about the Scons-users mailing list