TargetTriple TryGetTripleFromRustc()
        {
            string defaultInstallPath = Shared.Environment.FindInstallPath("default");

            if (defaultInstallPath == null)
            {
                return(null);
            }
            string rustcPath = Path.Combine(defaultInstallPath, "rustc.exe");
            string rustcHost = GetRustcHost(rustcPath);

            return(TargetTriple.Create(rustcHost));
        }
        TargetTriple TryGetTripleFromConfiguration()
        {
            string triple = Configuration.Build.LoadFrom(new ProjectConfig[] { projectConfig }).PlatformTarget;

            return(TargetTriple.Create(triple));
        }