Lines Matching defs:compiler
40 #include "compiler-name.hh"
47 // The C compiler context that we hand back to our caller.
75 class compiler
80 compiler (libcc1 *self) : self_ (self)
83 virtual char *find (std::string &compiler) const;
84 virtual ~compiler ()
90 class compiler_triplet_regexp : public compiler
95 virtual char *find (std::string &compiler) const;
97 : compiler (self), triplet_regexp_ (triplet_regexp)
106 class compiler_driver_filename : public compiler
111 virtual char *find (std::string &compiler) const;
113 : compiler (self), driver_filename_ (driver_filename)
153 compilerp (new libcc1::compiler (this))
336 // Construct an appropriate regexp to match the compiler name.
338 make_regexp (const char *triplet_regexp, const char *compiler)
344 // Quote the compiler name in case it has something funny in it.
345 for (const char *p = compiler; *p; ++p)
380 libcc1::compiler::find (std::string &compiler ATTRIBUTE_UNUSED) const
386 libcc1::compiler_triplet_regexp::find (std::string &compiler) const
390 fprintf (stderr, _("searching for compiler matching regex %s\n"),
408 if (!find_compiler (triplet, &compiler))
411 return concat ("Could not find a compiler matching \"",
418 fprintf (stderr, _("found compiler %s\n"), compiler.c_str());
423 libcc1::compiler_driver_filename::find (std::string &compiler) const
427 fprintf (stderr, _("using explicit compiler filename %s\n"),
429 compiler = driver_filename_;
439 std::string compiler;
440 char *errmsg = self->compilerp->find (compiler);
444 self->args.push_back (compiler);