[Scons-users] 回复: 回复: Ninja compilation fails after using include path file instead of "-I" option

liruncong2018 liruncong2018 at qq.com
Mon Apr 25 20:48:55 EDT 2022


@dmoody256 After the update, no files have been modified, and when compiling again, "ninja: no work to do." is displayed, which is no problem.


------------------ 原始邮件 ------------------
发件人:                                                                                                                        "SCons users mailing list"                                                                                    <dmoody256 at gmail.com>;
发送时间: 2022年4月26日(星期二) 凌晨1:16
收件人: "Bill Deegan"<bill at baddogconsulting.com>;
抄送: "SCons users mailing list"<scons-users at scons.org>;
主题: Re: [Scons-users] 回复: 回复: 回复: 回复: 回复: 回复: Ninja compilation fails after using include path file instead of "-I" option



@bdbadog I added those to the correct tools.

@liruncong I updated the branch so that it will not always try to start the scons daemon. Please give it some testing.



On Sat, Apr 23, 2022 at 10:59 AM Bill Deegan <bill at baddogconsulting.com> wrote:

Indeed that sounds reasonable.
Please add that to the relevant compiler tool's..



On Sat, Apr 23, 2022 at 1:51 PM Mats Wichmann <mats at wichmann.us> wrote:


 On 4/22/22 10:54, Daniel Moody wrote:
 > I think I know why this is happening, Ninja will parse header
 > dependencies via the "-MMD -MF" or "/showIncludes" options. Ninja must
 > be told what format to parse from the output of these options. By
 > default ninja uses MSVC format on windows, but you are using gcc and
 > clang compilers on windows so msvc format is not correct.
 > 
 > I have added a new configuration variable to allow you to tell scons
 > what to configure ninja for, before ninja tool is loaded via
 > env.Tool('ninja') in the SConstruct, you must set the
 > variable NINJA_DEPFILE_PARSE_FORMAT, so it will look like this in the
 > SContruct:
 > 
 > env['NINJA_DEPFILE_PARSE_FORMAT'] = 'clang'
 > env.Tool('Ninja')
 
 Isn't this something that the relevant compiler tool (gcc, msvc, clang,
 mingw) could set up rather than introducing something the developer
 needs to set?
 _______________________________________________
 Scons-users mailing list
 Scons-users at scons.org
 https://pairlist4.pair.net/mailman/listinfo/scons-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20220426/033a91e0/attachment.htm>


More information about the Scons-users mailing list