[llvm-dev] Two-stage build w/ ninja - Tests still use stage1 compiler / linker ?

Nemanja Ivanovic via llvm-dev llvm-dev at lists.llvm.org
Mon Nov 6 03:26:25 PST 2017


Aren't unit tests always built with the build compiler (which is stage 1 in
your case)?

On Sun, Nov 5, 2017 at 11:53 AM Dirk Schroetter via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Folks,
>
> I am using a two-stagesimple build like this one:
>
> make -G Ninja -DCLANG_ENABLE_BOOTSTRAP=ON ../src
> ninja stage2-check-all
>
> Stage 1 gets built, and when looking at rules.ninja in the stage2-bins I
> see:
>
> rule CXX_COMPILER_AnalysisTests
>   depfile = $DEP_FILE
>   deps = gcc
>   command = <stage1 build dir>./bin/clang++ $DEFINES $INCLUDES $FLAGS -MMD
> -MT $out -MF $DEP_FILE -o $out -c $in
>
> This is just an example, in fact all of the CXX_COMPILER_{unit tests}
> point to the the compiler and linker as per above example.
>
> 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 ?
>
> Thanks,
>
> /Dirk
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171106/268a1806/attachment.html>


More information about the llvm-dev mailing list