aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/BuildInfo.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-11-10 11:04:33 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2016-11-10 11:40:27 -0800
commiteb7ca47d4839a6bf8cea36cba8507750cd5d7746 (patch)
treeb7a7c0544321cea3f3f6eecf29e186f1166e7fbb /toolsrc/src/BuildInfo.cpp
parent22f681c82d584a9962a0133ef086326f41df9cc1 (diff)
downloadvcpkg-eb7ca47d4839a6bf8cea36cba8507750cd5d7746.tar.gz
vcpkg-eb7ca47d4839a6bf8cea36cba8507750cd5d7746.zip
Add checks for outdated crts
Diffstat (limited to 'toolsrc/src/BuildInfo.cpp')
-rw-r--r--toolsrc/src/BuildInfo.cpp21
1 files changed, 20 insertions, 1 deletions
diff --git a/toolsrc/src/BuildInfo.cpp b/toolsrc/src/BuildInfo.cpp
index 5fcf8ac09..f262df56f 100644
--- a/toolsrc/src/BuildInfo.cpp
+++ b/toolsrc/src/BuildInfo.cpp
@@ -87,7 +87,6 @@ namespace vcpkg
}
std::string to_string(const ConfigurationType& conf)
-
{
switch (conf)
{
@@ -132,4 +131,24 @@ namespace vcpkg
return BuildInfo::create(pghs[0]);
}
+
+ const OutdatedDynamicCrt OutdatedDynamicCrt::MSVCP100_DLL = OutdatedDynamicCrt("msvcp100.dll", R"(msvcp100\.dll)");
+ const OutdatedDynamicCrt OutdatedDynamicCrt::MSVCP100D_DLL = OutdatedDynamicCrt("msvcp100d.dll", R"(msvcp100d\.dll)");
+ const OutdatedDynamicCrt OutdatedDynamicCrt::MSVCP110_DLL = OutdatedDynamicCrt("msvcp110.dll", R"(msvcp110\.dll)");
+ const OutdatedDynamicCrt OutdatedDynamicCrt::MSVCP110_WIN_DLL = OutdatedDynamicCrt("msvcp110_win.dll", R"(msvcp110_win\.dll)");
+ const OutdatedDynamicCrt OutdatedDynamicCrt::MSVCP120_DLL = OutdatedDynamicCrt("msvcp120.dll", R"(msvcp120\.dll)");
+ const OutdatedDynamicCrt OutdatedDynamicCrt::MSVCP120_CLR0400_DLL = OutdatedDynamicCrt("msvcp120_clr0400.dll", R"(msvcp120_clr0400\.dll)");
+ const OutdatedDynamicCrt OutdatedDynamicCrt::MSVCP60_DLL = OutdatedDynamicCrt("msvcp60.dll", R"(msvcp60\.dll)");
+ const OutdatedDynamicCrt OutdatedDynamicCrt::MSVCP_WIN_DLL = OutdatedDynamicCrt("msvcp60.dll", R"(msvcp60\.dll)");;
+
+ const std::regex& OutdatedDynamicCrt::crt_regex() const
+ {
+ static const std::regex r(this->m_crt_regex_as_string, std::regex_constants::icase);
+ return r;
+ }
+
+ const std::string& OutdatedDynamicCrt::toString() const
+ {
+ return this->m_dll_name;
+ }
}