How to clear scons cache? CheckLibWithHeader returns "no" first time called, "yes" second time -



How to clear scons cache? CheckLibWithHeader returns "no" first time called, "yes" second time -

i have sconstruct file checking google protobuf library, so:

main['have_protobuf'] = main['protoc'] , \ conf.checklibwithheader('protobuf', 'google/protobuf/message.h', 'c++', 'google_protobuf_verify_version;')

i noticed phone call checklibwithheader returning "no". doing debugging of script, , became apparent me subsequent identical calls checklibwithheader returned "yes". when set identical line in sconstruct file next 1 above, output follows:

. . . checking accept(0,0,0) in c++ library none... (cached) yes checking zlibversion() in c++ library z... (cached) yes checking google_protobuf_verify_version in c++ library protobuf... (cached) no checking google_protobuf_verify_version in c++ library protobuf... (cached) yes checking clock_nanosleep(0,0,null,null) in c library none... no checking clock_nanosleep(0,0,null,null) in c library rt... yes . . .

i have protobuf libraries. know why first phone call checklibwithheader returning "no"?

this problem me occurs in centos, not in ubuntu.

update: no longer able reproduce above problem. however, have found when run problem scons using value marked "(cached)" appears incorrect, can 2 things help solution. i'll set these in reply below.

the --config=force command line alternative should re-run configuration tests without looking @ cached results. according man page scons:

--config=force if alternative specified, configuration tests re-run regardless of whether cached results out of date. can used explicitly forcefulness configuration tests updated in response otherwise unconfigured alter in scheme header file or compiler.

scons

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -