Automated porting of druntime to new platforms using libclang
Joakim
joakim at airpost.net
Tue Jan 7 07:46:10 PST 2014
On Tuesday, 7 January 2014 at 12:24:25 UTC, Jacob Carlborg wrote:
> On 2014-01-07 12:17, Joakim wrote:
>
>> That's too bad, as the preprocessor is important in the
>> headers. Perhaps
>> this can be finessed by passing various architectures or other
>> preprocessor defines to the input of clang/libclang and then
>> comparing
>> the output of the various preprocessed files? For the limited
>> uses of
>> the preprocessor that are translated for druntime, maybe that
>> will be
>> enough.
>
> Seems complicated. I need to be able to support the
> preprocessor anyway in DStep. The correct solution is to extend
> the libclang API for this based on PPCallbacks.
The "correct solution" isn't always the quick solution. ;)
Anyway, thanks for building such a nice-sounding tool in DStep
and for responding. I'll let you know when I start playing with
DStep.
More information about the digitalmars-d-ldc
mailing list