[cfe-dev] fatal error: 'cstdio' file not found

Eric Christopher echristo at apple.com
Mon Jul 19 23:51:47 PDT 2010


On Jul 19, 2010, at 11:46 PM, John McCall wrote:

> On Jul 19, 2010, at 11:31 PM, Sebastian Redl wrote:
>> On 07/19/2010 11:10 PM, Michael Spencer wrote:
>>> 
>>> Since the headers are part of the gcc distribution, why not just ask
>>> gcc at run-time? It Just Works (tm).
>>> 
>> We can't exactly afford to add the overhead of launching GCC to every
>> Clang invocation just to find out where it hides its header files.
> 
> We could, however, have some sort of configuration file in $prefix/share/clang
> (or wherever).  configure could write a default configuration based on the host,
> and anybody moving binaries between different setups probably deserves
> what they get.

Could just compile it in as a bunch of strings also to save overhead once we've
autodetected.  Autodetecting is on the list - it just hasn't been high enough priority
for anyone to write a patch.

-eric



More information about the cfe-dev mailing list