static bool IsLlvmRuntimeEnabled(Context ctx, string llvmAbi) { bool enabled = false; bool windows = ctx.IsLlvmWindowsAbi(llvmAbi); bool is64Bit = ctx.Is64BitLlvmAbi(llvmAbi); HashSet <string> targets; if (windows) { targets = is64Bit ? AbiNames.All64BitWindowsAotAbis : AbiNames.All32BitWindowsAotAbis; } else { targets = is64Bit ? AbiNames.All64BitHostAotAbis : AbiNames.All32BitHostAotAbis; } foreach (string target in targets) { if (Context.Instance.IsTargetAotAbiEnabled(target)) { enabled = true; break; } } return(enabled && (!is64Bit || Context.Instance.OS.Is64Bit)); }
public override void Init(Context context) { if (Context.IsLlvmWindowsAbi(Name)) { ExeSuffix = Configurables.Defaults.WindowsExecutableSuffix; InstallPath = Configurables.Paths.InstallMSBuildDir; } else { InstallPath = OSInstallPath; } }
public override void Init(Context context) { InstallBinaries = String.Compare(Name, AbiNames.Llvm.Windows64Bit, StringComparison.Ordinal) != 0; if (Context.IsLlvmWindowsAbi(Name)) { ExeSuffix = Configurables.Defaults.WindowsExecutableSuffix; InstallPath = Configurables.Paths.InstallMSBuildDir; } else { InstallPath = OSInstallPath; } }