[PATCH] D20136: Get default -fms-compatibility-version from cl.exe's version
David Majnemer via cfe-commits
cfe-commits at lists.llvm.org
Tue May 10 14:57:56 PDT 2016
majnemer added a subscriber: majnemer.
================
Comment at: lib/Driver/MSVCToolChain.cpp:472
@@ +471,3 @@
+
+ const DWORD VersionSize = ::GetFileVersionInfoSizeA(ClExe.c_str(), nullptr);
+ if (VersionSize == 0) {
----------------
Why not use the `GetFileVersionInfoSizeW` variant?
http://reviews.llvm.org/D20136
More information about the cfe-commits
mailing list