[cfe-commits] r62668 - /cfe/trunk/lib/Lex/PTHLexer.cpp

Chris Lattner clattner at apple.com
Wed Jan 21 09:49:15 PST 2009


On Jan 21, 2009, at 4:11 AM, Sebastian Redl wrote:

>
> On Tue, 20 Jan 2009 23:21:04 -0800, Ted Kremenek <kremenek at apple.com>
> wrote:
>> Chris,
>>
>> I don't think that this is portable.  This assumes that both the host
>> and the PTH file encode integers in little endian format.
>>
>
> Are PTH files supposed to be portable? Aren't they just generated on  
> the
> target system anyway?

They are intended to be portable.  We want a well-defined file format,  
and we want them to be generatable on one system and sent (e.g.) over  
NFS to another system.  PTH files currently do not encode any  
architectural details of the host or target into them.  On the mac,  
one use of this is that you can use one PTH file for both "-arch i386"  
and "-arch ppc" builds.

-Chris



More information about the cfe-commits mailing list