[PATCH] Correct language options from the driver

Eli Bendersky eliben at google.com
Thu May 29 08:47:03 PDT 2014


LGTM

Thanks for taking the time to deep-dive into this and figure out the core
reason, Aaron!


On Thu, May 29, 2014 at 6:33 AM, Aaron Ballman <aaron at aaronballman.com>
wrote:

> When setting language option defaults, -std overrides -x for CUDA and
> OpenCL when it should not. For instance, passing -x cuda -std=c++11,
> the CUDA language option would never be set, and so CUDA functionality
> would be disabled. This patch addresses that by setting the language
> option based on the -std or the input file kind.
>
> ~Aaron
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140529/b28e02c4/attachment.html>


More information about the cfe-commits mailing list