for libcc1/ChangeLog
* findcomp.cc: Include system.h.
(search_dir): Return absolute filename.
From-SVN: r245050
2017-01-30 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * findcomp.cc: Include system.h.
+ (search_dir): Return absolute filename.
+
* libcc1.cc (libcc1): Add class compiler with field compilerp,
class compiler_triplet_regexp and class
compiler_driver_filename.
#include "libiberty.h"
#include "xregex.h"
#include "findcomp.hh"
+#include "system.h"
class scanner
{
{
if (regexec (®exp, filename, 0, NULL, 0) == 0)
{
- *result = filename;
+ *result = dir + DIR_SEPARATOR + filename;
return true;
}
}