[cfe-commits] [Patch] Add libexec to toolchain search path on FreeBSD

Daniel Dunbar daniel at zuster.org
Tue Jun 15 08:21:56 PDT 2010


This doesn't really seem like a good idea, since it is effectively
giving GCC compiler info to a tool chain that was told to build with
Clang. But, it's your platform, so applied in r105996! :)

 - Daniel

On Sun, Jun 13, 2010 at 11:44 AM, Ed Schouten <ed at 80386.nl> wrote:
> Hi all,
>
> I'm trying to polish building FreeBSD with Clang and it seems we use the
> following construct in one of our Makefiles:
>
> `${CC} --print-prog-name=cc1obj` -print-objc-runtime-info
>
> When CC=clang, it can't find the pathname of the cc1obj binary. For now,
> I think it's a good idea if we just add /usr/libexec to the search path
> as well. Patch given below:
>
> Index: lib/Driver/ToolChains.cpp
> ===================================================================
> --- lib/Driver/ToolChains.cpp   (revision 209125)
> +++ lib/Driver/ToolChains.cpp   (working copy)
> @@ -859,6 +859,8 @@
>
>  FreeBSD::FreeBSD(const HostInfo &Host, const llvm::Triple& Triple, bool Lib32)
>   : Generic_GCC(Host, Triple) {
> +  getProgramPaths().push_back(getDriver().Dir + "/../libexec");
> +  getProgramPaths().push_back("/usr/libexec");
>   if (Lib32) {
>     getFilePaths().push_back(getDriver().Dir + "/../lib32");
>     getFilePaths().push_back("/usr/lib32");
>
> --
>  Ed Schouten <ed at 80386.nl>
>  WWW: http://80386.nl/
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>




More information about the cfe-commits mailing list