[PATCH] D77923: OpenCL: Fix some missing predefined macros
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 14 19:03:35 PDT 2020
yaxunl added a comment.
In D77923#1981698 <https://reviews.llvm.org/D77923#1981698>, @jvesely wrote:
> does passing `-U__OPENCL_VERSION__ -D __OPENCL_VERSION__=x.y` on the commadline work as well? the header trick was my fallback path.
Yes the command line option -U or -D override predefined macros.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77923/new/
https://reviews.llvm.org/D77923
More information about the cfe-commits
mailing list