Skip to content

Commit

Permalink
The kit name for Clang/MSVC too long, put the arch at the front
Browse files Browse the repository at this point in the history
[kit] Found Kit (trusted): Clang 17.0.3 (MSVC CLI) for MSVC 17.10.35004.147 (Visual Studio Community 2022 Release - x86)
[kit] Found Kit (trusted): Clang 17.0.3 (GNU CLI) for MSVC 17.10.35004.147 (Visual Studio Community 2022 Release - x86)
[kit] Found Kit (trusted): Clang 17.0.3 (MSVC CLI) for MSVC 17.10.35004.147 (Visual Studio Community 2022 Release - amd64)
[kit] Found Kit (trusted): Clang 17.0.3 (GNU CLI) for MSVC 17.10.35004.147 (Visual Studio Community 2022 Release - amd64)

Signed-off-by: Yonggang Luo <[email protected]>
  • Loading branch information
lygstate committed Jun 15, 2024
1 parent 1b69c4f commit 85e1a57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ async function scanDirForClangForMSVCKits(dir: PathWithTrust, vsInstalls: VSInst
const vsArch = (version?.target && version.target.triple.includes('i686-pc')) ? 'x86' : 'x64';
const archForKitName = vsArch === 'x86' ? 'x86' : 'amd64';
const clangArchPath = (vsArch === "x64") ? "x64\\" : "";
const clangKitName: string = `Clang ${version?.version} ${clang_cli} for MSVC ${vs.installationVersion} (${install_name} - ${archForKitName})`;
const clangKitName: string = `Clang ${version?.version} ${clang_cli} - ${archForKitName} for MSVC ${vs.installationVersion} (${install_name})`;
const clangExists = async () => {
const exists = binPath.startsWith(`${vs.installationPath}\\VC\\Tools\\Llvm\\${clangArchPath}bin`) && await util.checkFileExists(util.lightNormalizePath(binPath));
return exists;
Expand Down

0 comments on commit 85e1a57

Please sign in to comment.