Skip to content

Commit d28ce36

Browse files
authored
Do not fail SDK install if Redpoint Clang is not available (#372)
1 parent c289965 commit d28ce36

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

UET/Redpoint.Uet.SdkManagement/Sdk/WindowsSdk/WindowsSdkInstaller.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ void RecursivelyAddComponent(string componentId, string fromComponentId)
243243
}
244244

245245
// Download "Clang for Unreal Engine" and install it into the LLVM directory for AutoSDK.
246+
try
246247
{
247248
using (var client = new HttpClient())
248249
{
@@ -332,6 +333,10 @@ await DirectoryAsync.CopyAsync(
332333
}
333334
}
334335
}
336+
catch (Exception ex)
337+
{
338+
_logger.LogWarning($"Failed to install Clang for Unreal Engine: {ex}");
339+
}
335340

336341
// Write out the environment file.
337342
var msvcVersion = Path.GetFileName(Directory.GetDirectories(Path.Combine(sdkPackagePath, "VS2022", "VC", "Tools", "MSVC"))[0]);

0 commit comments

Comments
 (0)