[cfe-dev] Using Clang 5.0.0 RC2 with MSVC dev builds
Stephan T. Lavavej via cfe-dev
cfe-dev at lists.llvm.org
Tue Aug 15 15:17:15 PDT 2017
[don hinton]
> Unfortunately, it looks like the current test is based on the path. Perhaps
> it would be better to actually run a simple test compile, a la, configure/cmake,
> and spit out the value of _MSC_VER instead.
My usage scenario involves running over 4,000 invocations of clang-cl.exe (one for each of libc++'s many small tests). Having each of those launch cl.exe would be highly undesirable.
As I understand it, if you can find cl.exe (which you can, it's right there on the path), you can get its version information from GetFileVersionInfoW() like Reid said, without invoking it. The issue seems to be the additional directory structure analysis to find the "root path" (is this to find where the libraries are?), which I believe is causing the cl.exe to be rejected as "not a tool chain".
I am continuing to set up my VM and should have a repro soon.
Thanks,
STL
More information about the cfe-dev
mailing list