You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[libcxx] [ci] Make the CI find the right version of Clang-cl
We install a (or in practice, update a preexisting) copy of Clang,
in order to get a specific version that we want. At that point
in the procedure, this is the only version of Clang in the PATH.
However, the step of adding the MSVC build tools to the environment
also ends up adding another copy of Clang, bundled with MSVC, into
the PATH.
Due to this, CMake ends up finding and preferring the older version
of Clang bundled with MSVC, rather than the one we intend to be
used.
Manually add the directory of the version of Clang we want to use at
the head of the search path, after initializing the MSVC build tool
environment.
The directory name we add is a hardcoded guess of where it is
installed - this is not ideal, but seems like the most
straightforward solution for now.
0 commit comments