Added error when invoking gcc fails

This commit is contained in:
Tomas Lindquist Olsen
2008-12-01 15:18:22 +01:00
parent cd8f12ed35
commit d3ae488730

View File

@@ -466,6 +466,11 @@ void assemble(const llvm::sys::Path& asmpath, const llvm::sys::Path& objpath, ch
std::string ErrMsg;
int R = sys::Program::ExecuteAndWait(
gcc, &Args[0], (const char**)clean_env, 0, 0, 0, &ErrMsg);
if (R)
{
error("failed to invoke gcc");
fatal();
}
delete [] clean_env;
}