Re:Using Clang on Windows
by bla2 on Thursday August 03, 2017 @06:37PM
(#14924601)
Looks like this is using clang++ instead of clang-cl, which sets almost all of these flags automatically.
[ Parent
| on HN ]
Exactly, In fact clang, clang++ and clang-cl are all the same program. The frontend just behaves differently based on the file name.
Disclaimer: I am a LLVM Engineer working on a mingw-w64 standalone clang :)
Re:Using Clang on Windows
by jessermeyer on Thursday August 03, 2017 @08:36PM
(#14925388)
Why is Clang so much slower than cl at compiling? On OS X / unix Clang seems so much faster.
By cl do you mean MSVC cl or are you asking about clang vs clang-cl ?
Re:Using Clang on Windows
by jessermeyer on Thursday August 03, 2017 @09:58PM
(#14925768)
MSVC cl compiles much faster than clang / clang-cl.
Yes, this is something that is being worked on.
Re:Using Clang on Windows
by jessermeyer on Friday August 04, 2017 @06:50PM
(#14933014)
Can you point to an official discussion / svn commit chain that demonstrates this?
Unfortunately, clang-cl only supports a very limited subset of CL's flags. And if you want to talk to clang directly you have to go through an extra layer of indirection by using -Xclang -flag. By using clang directly you get the whole power of clang without arbitrary limitations (and as a bonus you can now compiler your software on mac and linux).