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:
parent
db015a4112
commit
d375c805c9
9 changed files with 97 additions and 34 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue