<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Apr 15, 2013, at 10:56 AM, Jordan Rose <<a href="mailto:jordan_rose@apple.com">jordan_rose@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Apr 15, 2013, at 10:53 , Tanya Lattner <<a href="mailto:lattner@apple.com">lattner@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Apr 15, 2013, at 10:44 AM, Jordan Rose <<a href="mailto:jordan_rose@apple.com">jordan_rose@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>I'm not familiar with the OpenCL part of the compiler, but I'm pretty sure you're not supposed to invoke -cc1 mode directly, just like the C compiler. The right way to do this is with the usual -std option:</div><div><br></div><div>clang -std=cl1.2 tmp.cl</div><div><br></div><div>This ensures that all the other driver-specified options get handled appropriately.</div></div></blockquote><div><br></div><div>I agree that you shouldn't use -cc1, but -cl-std= should be a driver level option. If not, then it should be fixed.</div></div></div></blockquote><br></div><div>It seems it isn't, but why not -std? We already use this to refer to both the C and C++ standards.</div></div></blockquote><div><br></div><div>I totally agree with you, but I did not write the OpenCL Spec and I have no idea why they decided they needed another std option. </div><div><br></div><div>Its not a high priority to me to change it to be a driver level option, but someone else might complain (and they can fix it).</div><div><br></div><div>-Tanya</div></div><br></body></html>