[cfe-dev] Anyway to tell clang to always include a header file?
Jonathan Roelofs via cfe-dev
cfe-dev at lists.llvm.org
Mon Oct 17 16:55:20 PDT 2016
On 10/17/16 5:15 PM, Phil Tomson via cfe-dev 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?
Poke around in lib/Basic/Targets.cpp
The usual way to do this is to have your FooTargetInfo call methods on
the MacroBuilder, and have it set your pre-#defined things that way.
Jon
>
> Phil
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
--
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded
More information about the cfe-dev
mailing list