[SAoC] 'DPP with Linux kernel headers' Project Thread

Jacob Carlborg doob at me.com
Wed Sep 18 18:07:58 UTC 2019

On 2019-09-16 22:51, Cristian Becerescu wrote:

>         -> how to pass clang command line options to dpp?

DStep [1], which is very similar to dpp and uses libclang, will forward 
any unrecognized arguments to libclang. If there are any conflicts, it's 
always possible to pass "--" to separate Clang arguments from DStep 
arguments. It's common practice and is supported by std.getopts, IIRC.

>         -> how to specify what version of libclang should be used?

I would assume that dpp doesn't use `dlopen` and just uses whatever 
version of libclang is installed. DStep supports static linking of 
libclang and the pre-compiled release binaries are statically linked 
with libclang to minimize the risk that an unsupported version of 
libclang is used.

[1] https://github.com/jacob-carlborg/dstep

/Jacob Carlborg

More information about the Digitalmars-d mailing list