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;
}