<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">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>_______________________________________________<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/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div>