[PATCH] Correct language options from the driver

Aaron Ballman aaron at aaronballman.com
Thu May 29 06:33:22 PDT 2014


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 --------------
A non-text attachment was scrubbed...
Name: lang-opts.patch
Type: application/octet-stream
Size: 2463 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140529/f86853e0/attachment.obj>


More information about the cfe-commits mailing list