回复: 回复: Ninja compil ation fails after using include path file instead of "-I" option

liruncong2018 via Scons-users <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <[email protected]>
@dmoody256&nbsp;After the update, no files have been modified, and when compiling again, "ninja: no work to do." is displayed, which is no problem.


------------------&nbsp;原始邮件&nbsp;------------------
发件人:                                                                                                                        "SCons users mailing list"                                                                                    <[email protected]&gt;;
发送时间:&nbsp;2022年4月26日(星期二) 凌晨1:16
收件人:&nbsp;"Bill Deegan"<[email protected]&gt;;
抄送:&nbsp;"SCons users mailing list"<[email protected]&gt;;
主题:&nbsp;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 <[email protected]&gt; 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 <[email protected]&gt; wrote:


 On 4/22/22 10:54, Daniel Moody wrote:
 &gt; I think I know why this&nbsp;is happening, Ninja will&nbsp;parse header
 &gt; dependencies via the "-MMD -MF" or "/showIncludes" options. Ninja must
 &gt; be told what&nbsp;format to parse from the output of these options. By
 &gt; default ninja uses MSVC format on windows, but you are using gcc and
 &gt; clang compilers on windows so msvc format is not correct.
 &gt; 
 &gt; I have added a new configuration variable to allow you to tell scons
 &gt; what to configure ninja for, before ninja tool&nbsp;is loaded via
 &gt; env.Tool('ninja') in the SConstruct, you must set the
 &gt; variable&nbsp;NINJA_DEPFILE_PARSE_FORMAT, so it will look like this in the
 &gt; SContruct:
 &gt; 
 &gt; env['NINJA_DEPFILE_PARSE_FORMAT'] = 'clang'
 &gt; 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
 [email protected]
 https://pairlist4.pair.net/mailman/listinfo/scons-users

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.