From 4a19e76dc4749e0826cfd950cb50891d3e655c50 Mon Sep 17 00:00:00 2001 From: Mostafa Mohammed Date: Tue, 17 Dec 2024 14:42:56 +0100 Subject: [PATCH] If CLToolExe does not exist, fallback to cl.exe --- src/Integration.Vsix/CFamily/VcxProject/FileConfig.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Integration.Vsix/CFamily/VcxProject/FileConfig.cs b/src/Integration.Vsix/CFamily/VcxProject/FileConfig.cs index 80e5ada62..1915b62e2 100644 --- a/src/Integration.Vsix/CFamily/VcxProject/FileConfig.cs +++ b/src/Integration.Vsix/CFamily/VcxProject/FileConfig.cs @@ -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(';'))