<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello Nemanja,<div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">/Dirk</div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">Am 06.11.2017 um 12:26 schrieb Nemanja Ivanovic <<a href="mailto:nemanja.i.ibm@gmail.com" class="">nemanja.i.ibm@gmail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div dir="auto" class="">Aren't unit tests always built with the build compiler (which is stage 1 in your case)?</div><br class=""><div class="gmail_quote"><div class="">On Sun, Nov 5, 2017 at 11:53 AM Dirk Schroetter via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:<br class=""></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" class="">Folks,<div class=""><br class=""></div><div class="">I am using a two-stagesimple build like this one:</div><div class=""><br class=""></div><div class=""><font face="Courier New" class="">make -G Ninja -DCLANG_ENABLE_BOOTSTRAP=ON ../src</font></div><div class=""><font face="Courier New" class="">ninja stage2-check-all</font></div><div class=""><br class=""></div><div class="">Stage 1 gets built, and when looking at <font face="Courier New" class="">rules.ninja</font> in the <font face="Courier New" class="">stage2-bins</font> I see:</div><div class=""><br class=""></div><div class=""><font face="Courier New" class="">rule CXX_COMPILER_AnalysisTests</font></div><div class=""><font face="Courier New" class="">  depfile = $DEP_FILE</font></div><div class=""><font face="Courier New" class="">  deps = gcc</font></div><div class=""><font face="Courier New" class="">  command = <stage1 build dir>./bin/clang++ $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in</font></div><div class=""><br class=""></div><div class="">This is just an example, in fact all of the <font face="Courier New" class="">CXX_COMPILER_{unit tests}</font> point to the the compiler and linker as per above example.</div><div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">/Dirk</div><div class=""><br class=""></div><div class=""><br class=""></div></div>_______________________________________________<br class="">
LLVM Developers mailing list<br class="">
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a><br class="">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class="">
</blockquote></div></div>
</div></blockquote></div><br class=""></div></body></html>