Added error when gcc cannot be found.

This commit is contained in:
Tomas Lindquist Olsen
2008-12-01 15:21:33 +01:00
parent d3ae488730
commit 649b860d2b

View File

@@ -409,6 +409,11 @@ void assemble(const llvm::sys::Path& asmpath, const llvm::sys::Path& objpath, ch
using namespace llvm;
sys::Path gcc = llvm::sys::Program::FindProgramByName("gcc");
if (gcc.empty())
{
error("failed to locate gcc");
fatal();
}
// Remove these environment variables from the environment of the
// programs that we will execute. It appears that GCC sets these