[cfe-dev] Anyway to tell clang to always include a header file?
Steven Wu via cfe-dev
cfe-dev at lists.llvm.org
Mon Oct 17 16:53:53 PDT 2016
Hi Phil
You can try add all your 'default include' headers into an umbrella header then add '-include umbrella.h' to your clang invocation. That is assume you are providing a build environment for your user. Otherwise, always add one line of #include at the beginning of every file might be simpler.
Steven
> On Oct 17, 2016, at 4:15 PM, Phil Tomson via cfe-dev <cfe-dev at lists.llvm.org> wrote:
>
> We've got some #define's we'd always like defined for a particular target but we'd like to not have the users be aware that they need to #include that header. Is it possible to set up a list of "default" header files that are always included for a particular target?
>
> Phil
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list