Skip to content

Commit

Permalink
If CLToolExe does not exist, fallback to cl.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa-mohammed-sonarsource committed Dec 17, 2024
1 parent aae9f34 commit 4a19e76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Integration.Vsix/CFamily/VcxProject/FileConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ private static bool TryGetCompilerPathFromExecutablePath(ILogger logger, VCConfi
var toolExe = vcConfig.GetEvaluatedPropertyValue("CLToolExe");
if (string.IsNullOrEmpty(toolExe))
{
logger.WriteLine("\"CLToolExe\" was not found.");
return false;
logger.WriteLine("\"CLToolExe\" was not found, falling back to cl.exe.");
toolExe = "cl.exe";
}

foreach (var path in executablePath.Split(';'))
Expand Down

0 comments on commit 4a19e76

Please sign in to comment.