<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="">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></body></html>