public static IUEToolChain GetPlatformToolChain(CPPTargetPlatform Platform) { UEBuildPlatform BuildPlatform = UEBuildPlatform.GetBuildPlatform(UEBuildTarget.CPPTargetPlatformToUnrealTargetPlatform(Platform)); UEBuildPlatformContext Context = BuildPlatform.CreateContext(null); return(Context.CreateToolChain(BuildPlatform.DefaultCppPlatform)); }