Пример #1
0
        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));
        }
Пример #2
0
 public override void Init(Context context)
 {
     if (Context.IsLlvmWindowsAbi(Name))
     {
         ExeSuffix   = Configurables.Defaults.WindowsExecutableSuffix;
         InstallPath = Configurables.Paths.InstallMSBuildDir;
     }
     else
     {
         InstallPath = OSInstallPath;
     }
 }
Пример #3
0
 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;
     }
 }