[Scons-users] dry runs and Configure

Mats Wichmann mats at wichmann.us
Tue Aug 1 17:13:27 EDT 2017


_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?


More information about the Scons-users mailing list