CClash.CompilerCacheBase.SetCompiler C# (CSharp) Method

SetCompiler() public method

public SetCompiler ( string compiler, string workdir, string>.Dictionary envs ) : ICompiler
compiler string
workdir string
envs string>.Dictionary
return ICompiler
        public ICompiler SetCompiler(string compiler, string workdir, Dictionary<string,string> envs)
        {
            if (string.IsNullOrEmpty(compiler)) throw new ArgumentNullException("compiler");
            
            compilerPath = System.IO.Path.GetFullPath(compiler);
            var comp = new Compiler()
            {
                CompilerExe = compilerPath
            };
            comp.SetWorkingDirectory(workdir);
            comp.SetEnvironment(envs);

            return comp;
        }