diff options
author | Martin Storsjö <martin@martin.st> | 2025-10-03 22:23:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-03 22:23:26 +0300 |
commit | f5dc553e93293743f4c1e36dc119e4823f5970d3 (patch) | |
tree | 9f5f2c525d2a85106eaa4aac7b2a224ab4cc29a3 /clang/lib/Frontend/CompilerInstance.cpp | |
parent | 272025e5afa858ebc6e49df88958b34a9b186f54 (diff) | |
download | llvm-f5dc553e93293743f4c1e36dc119e4823f5970d3.zip llvm-f5dc553e93293743f4c1e36dc119e4823f5970d3.tar.gz llvm-f5dc553e93293743f4c1e36dc119e4823f5970d3.tar.bz2 |
[libcxx] [ci] Make the CI find the right version of Clang-cl (#161736)
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.
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
0 files changed, 0 insertions, 0 deletions