[cfe-dev] [RFC] New file extension for compiling C++ for OpenCL sources

via cfe-dev cfe-dev at lists.llvm.org
Wed Feb 17 12:08:21 PST 2021


| you have a file named test.cpp, but you must still tell the compiler what language it's written in:
| - via the driver name, e.g. clang vs. clang++

I don't have any problem getting 'clang' to compile a .cpp file as C++.  My experience is that 'clang++' adds the c++ libraries to the linker command line, but that's the only observable difference.  (I'm not aware that we did anything special in this regard in our downstream project.)
--paulr

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210217/358f6f60/attachment.html>


More information about the cfe-dev mailing list