Automated porting of druntime to new platforms using libclang

Jacob Carlborg doob at me.com
Tue Jan 7 04:24:24 PST 2014


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.

-- 
/Jacob Carlborg


More information about the digitalmars-d-ldc mailing list