<div dir="ltr"><div>Not true.</div><div>There's an optional C scanner SCons.Scanner.C.CConditionalScanner</div><div><br></div><div>something like this should work.</div><div><br></div><div>from SCons.Scanner.C import CConditionalScanner</div><div>SourceFileScanner.add_scanner('.c', CConditionalScanner) <--- change the first argument to match your various source file suffixes.<br><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Jun 5, 2025 at 8:15 PM 于 <<a href="mailto:yjtyzw@126.com">yjtyzw@126.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><img style="width: 1px; height: 1px;" src="https://count.mail.163.com/beacon/webmail.gif?type=webmail_mailtrace&guid=1af39182638f4d7ab02a2fc2f983d25a"><div><div style="font-family:微软雅黑"><div>Hello guys,</div><div><br></div><div style="text-indent:2em"><span id="m_1208155911280050456_baidu_bookmark_start_0" style="display:none;line-height:0px">‍</span>I know that scons can't cover the marco case (define XXX xxx.h <span>@</span>#include XXX) with implicit dependencies.</div><div style="text-indent:2em">ParseDepends Function can parse the dependencies of source files, but it will leads to unnecessary recompilations.<br></div><div style="text-indent:2em">My question is that could I update dependency and database manually after building?</div><div style="text-indent:2em"><br></div><div><br></div></div></div><div><br></div><div><br></div><div id="m_1208155911280050456imail_signature"></div>_______________________________________________<br>
Scons-users mailing list<br>
<a href="mailto:Scons-users@scons.org" target="_blank">Scons-users@scons.org</a><br>
<a href="https://pairlist4.pair.net/mailman/listinfo/scons-users" rel="noreferrer" target="_blank">https://pairlist4.pair.net/mailman/listinfo/scons-users</a><br>
</blockquote></div>