<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">From [1], seems Dirk is right. Unless I misread the document.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">[1] <a href="https://llvm.org/docs/AdvancedBuilds.html#multi-stage-pgo">https://llvm.org/docs/AdvancedBuilds.html#multi-stage-pgo</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-11-06 19:35 GMT+08:00 Dirk Schroetter via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hello Nemanja,<div><br></div><div>in effect they are. Even in the 2-stage process both ninja and make use the stage1 compiler (with the caveat that there might be a variable which I am missing). But shouldn’t they be built using the stage2 compiler instead ? As that is the compiler we actually will be installing as product of the build and the one that should be tested ?</div><div><br></div><div>Thanks,</div><div><br></div><div>/Dirk</div><div><div class="h5"><div><br></div><div><div><blockquote type="cite"><div>Am 06.11.2017 um 12:26 schrieb Nemanja Ivanovic <<a href="mailto:nemanja.i.ibm@gmail.com" target="_blank">nemanja.i.ibm@gmail.com</a>>:</div><br class="m_4969039697682428856Apple-interchange-newline"><div><div><div dir="auto">Aren't unit tests always built with the build compiler (which is stage 1 in your case)?</div><br><div class="gmail_quote"><div>On Sun, Nov 5, 2017 at 11:53 AM Dirk Schroetter via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Folks,<div><br></div><div>I am using a two-stagesimple build like this one:</div><div><br></div><div><font face="Courier New">make -G Ninja -DCLANG_ENABLE_BOOTSTRAP=ON ../src</font></div><div><font face="Courier New">ninja stage2-check-all</font></div><div><br></div><div>Stage 1 gets built, and when looking at <font face="Courier New">rules.ninja</font> in the <font face="Courier New">stage2-bins</font> I see:</div><div><br></div><div><font face="Courier New">rule CXX_COMPILER_AnalysisTests</font></div><div><font face="Courier New"> depfile = $DEP_FILE</font></div><div><font face="Courier New"> deps = gcc</font></div><div><font face="Courier New"> command = <stage1 build dir>./bin/clang++ $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in</font></div><div><br></div><div>This is just an example, in fact all of the <font face="Courier New">CXX_COMPILER_{unit tests}</font> point to the the compiler and linker as per above example.</div><div><br></div><div>Isn’t that the stage1 compiler that is being used here ? I am pretty sure that I am just missing something here. Any pointers of how I can convince cmake to use the just-built (stage2) compiler for the tests ?</div><div><br></div><div>Thanks,</div><div><br></div><div>/Dirk</div><div><br></div><div><br></div></div>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div>
</div></blockquote></div><br></div></div></div></div><br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Wei-Ren Chen (陳韋任)<br>Homepage: <a href="https://people.cs.nctu.edu.tw/~chenwj" target="_blank">https://people.cs.nctu.edu.tw/~chenwj</a></div></div></div>
</div>