[llvm-dev] clang -xc++ foo.o
Jay K via llvm-dev
llvm-dev at lists.llvm.org
Thu Aug 16 02:39:53 PDT 2018
clang -xc++ -c 1.c 2.c
clang -xc++ main.c 1.o 2.o
1.o:1:1: error: source file is not valid UTF-8
Would be nice, albeit I realize kinda proby/non-deterministic/big, if .o files were recognized and -xc++ did not apply to them.
I'm converting C to C++ and don't want to rename files, at least at this point, maybe forever.
For now I've compromised and main remains C. It is much smaller than the various libraries, so -xc++ is almost a complete solution.
Thank you,
- Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180816/e913bf2c/attachment-0001.html>
More information about the llvm-dev
mailing list