[cfe-dev] clang options
John Thompson
john.thompson.jtsoftware at gmail.com
Fri Nov 20 11:18:15 PST 2009
How to force clang to compile a file as C++?
I tried:
clang -Xclang "-x=c++" -fsyntax-only file.c
but I get the error:
clang-cc.exe: for the -x option: may only occur zero or one times!
Is this a general problem with the driver in that options passed with -x
don't supercede those provided by the driver?
I tried:
clang -Xclang="-x=c++" -fsyntax-only file.c
but it apparently ignored the argument.
I tried:
clang -ccc-cxx -fsyntax-only file.c
but it still compiles it as C.
--
John Thompson
John.Thompson.JTSoftware at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091120/d7e4a20e/attachment.html>
More information about the cfe-dev
mailing list