[PATCH] D120308: [compiler-rt][builtins] Fix CMake builtin target flag

Tobias Hieta via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 22 01:08:28 PST 2022


thieta added a comment.

In D120308#3337090 <https://reviews.llvm.org/D120308#3337090>, @mstorsjo wrote:

> Hmm, ok. This is in an environment that defaults to a LLVM_DEFAULT_TRIPLE of `*-windows-msvc` I presume, but at what point within the runtimes setup does it switch to calling with the `clang-cl` frontend instead of the regular `clang`?

Oh sorry - I guess it's a bit more complicated - it's a BOOTSTRAP build where the first stage is MSVC, then bootstrap defaults to pass `clang-cl` to the second stage, which I think is the recommended way to build LLVM on Windows (use clang-cl instead of clang).

But the same effect can be found by doing `-DCMAKE_CXX_COMPILER=clang-cl` to my example above.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120308/new/

https://reviews.llvm.org/D120308



More information about the llvm-commits mailing list