1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-21 09:27:59 +02:00

Improvements to target triple override

This commit is contained in:
Brian Fiete 2022-01-28 08:19:11 -05:00
parent db015a4112
commit d375c805c9
9 changed files with 97 additions and 34 deletions

View file

@ -68,8 +68,11 @@ namespace IDE
case Android;
case Wasm;
public static PlatformType GetFromName(StringView name)
public static PlatformType GetFromName(StringView name, StringView targetTriple = default)
{
if (!targetTriple.IsWhiteSpace)
return TargetTriple.GetPlatformType(targetTriple);
switch (name)
{
case "Win32", "Win64": return .Windows;