[PATCH] D44753: [Preprocessor] Rename __is_{target -> host}_* function-like builtin macros

John Ericson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 21 14:46:31 PDT 2018


Ericson2314 added a comment.

@steven_wu but what you say is directly contradicted by the GHC example. I'm sure I could fine a GCC example too where some macro with "target" is in the name affects the target of the compiler being built. In the vast majority of programs, no more than one platform need affect preprocessing, but when multiple platforms affect preprocessing, they are *always* named from the perspective of the being-built tool being run.


Repository:
  rC Clang

https://reviews.llvm.org/D44753





More information about the cfe-commits mailing list