@@ -183,6 +183,16 @@ namespace Flax.Build
|
||||
throw new Exception(string.Format("Platform {0} is not supported.", targetPlatform));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tries to create the build toolchain for a given architecture. Returns null if platform is not supported.
|
||||
/// </summary>
|
||||
/// <param name="targetArchitecture">The target architecture.</param>
|
||||
/// <returns>The toolchain.</returns>
|
||||
public Toolchain TryGetToolchain(TargetArchitecture targetArchitecture)
|
||||
{
|
||||
return HasRequiredSDKsInstalled ? GetToolchain(targetArchitecture) : null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates the build toolchain for a given architecture.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user