[LLVMdev] clang searching for many linux directories that do not exist on FreeBSD host

Rafael Avila de Espindola rafael.espindola at gmail.com
Fri Jul 19 08:42:57 PDT 2013


Probably. The gcc class should know the structure of a gcc installation, but the Linux paths should be in another class.

Sent from my iPhone

On 2013-07-19, at 4:07, David Chisnall <David.Chisnall at cl.cam.ac.uk> wrote:

> On 19 Jul 2013, at 02:14, Eli Friedman <eli.friedman at gmail.com> wrote:
> 
>> It's straightforward: you just need to make toolchains::FreeBSD
>> inherit directly from ToolChain and implement all the methods it would
>> otherwise inherit from Generic_ELF (which in turn inherits from
>> Generic_GCC).
> 
> Wouldn't it make more sense to move the Linux-specific code out of Generic_GCC and into the Linux toolchain, rather than making all of the other subclasses of Generic_GCC reimplement the common code?
> 
> David
> 
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list