# HG changeset patch # User Tomas Lindquist Olsen # Date 1228141293 -3600 # Node ID 35de5ba7d36dee258a7d9cc50ac190ac85c33fac # Parent 05f2651caa6cadebed3a1b4594e17dd64834d9c1 Added error when gcc cannot be found. diff -r 05f2651caa6c -r 35de5ba7d36d gen/toobj.cpp --- a/gen/toobj.cpp Mon Dec 01 15:18:22 2008 +0100 +++ b/gen/toobj.cpp Mon Dec 01 15:21:33 2008 +0100 @@ -409,6 +409,11 @@ 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