回复: env.Textfile proble m

liruncong2018 via Scons-users <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <[email protected]>
Hi,
I originally wanted to reproduce the problem in the test project, but I did find another problem, scons is recompiled every time. 
Test code: liruncong/NinJaTest at EnvTextFile (github.com)
However, this problem was not found in my actual project.
The test project uses the gcc toolchain, and my actual project uses the armclang (clang) toolchain.



When ninja is not enabled, it is all recompiled every time you compile. After enabling ninja, the first two executions are all recompiles, and the third start is normal (ninja: no work to do.).
After normal (three times later), modify defineOptsFile as follows, scons (enable ninja) does not recompile, which should be problematic.
defineOptsFile = env.Textfile("build/__define_options.txt", [
&nbsp; &nbsp; &nbsp;"-DTEST1",
&nbsp; &nbsp; &nbsp;"-DTEST2"&nbsp; # new added
])



------------------ 原始邮件 ------------------
发件人:                                                                                                                        "Bill Deegan"                                                                                    <[email protected]&gt;;
发送时间:&nbsp;2022年5月15日(星期天) 上午7:20
收件人:&nbsp;"SCons users mailing list"<[email protected]&gt;;
抄送:&nbsp;"liruncong2018"<[email protected]&gt;;
主题:&nbsp;Re: [Scons-users] env.Textfile problem



Not enough information to help you.


What's your scons logic look like for this?



On Sat, May 14, 2022 at 3:04 AM liruncong2018 via Scons-users <[email protected]&gt; wrote:

Hi,
The source(env.Textfile second parameter) change did not trigger recompilation when using env.Textfile.
scons version: Commits · dmoody256/scons (github.com)&nbsp; commit: force utf-8
_______________________________________________
 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.