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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to