forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Windows Fleet for December 2023 Patch Tuesday (microsoft#35640)
- Loading branch information
1 parent
5290667
commit ca66630
Showing
15 changed files
with
230 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
diff --git a/folly/memory/UninitializedMemoryHacks.h b/folly/memory/UninitializedMemoryHacks.h | ||
index bd31c88..9f640a8 100644 | ||
--- a/folly/memory/UninitializedMemoryHacks.h | ||
+++ b/folly/memory/UninitializedMemoryHacks.h | ||
@@ -101,6 +101,9 @@ template < | ||
typename std::enable_if<std::is_trivially_destructible<T>::value>::type> | ||
inline void resizeWithoutInitialization( | ||
std::basic_string<T>& s, std::size_t n) { | ||
+#if defined(_MSVC_STL_UPDATE) && _MSVC_STL_UPDATE >= 202206L | ||
+ s.resize(n); | ||
+#else | ||
if (n <= s.size()) { | ||
s.resize(n); | ||
} else { | ||
@@ -111,6 +114,7 @@ inline void resizeWithoutInitialization( | ||
} | ||
detail::unsafeStringSetLargerSize(s, n); | ||
} | ||
+#endif // STL workaround | ||
} | ||
|
||
/** | ||
@@ -244,6 +248,8 @@ struct MakeUnsafeStringSetLargerSize { | ||
#elif defined(_MSC_VER) | ||
// MSVC | ||
|
||
+#if defined(_MSVC_STL_UPDATE) && _MSVC_STL_UPDATE >= 202206L | ||
+#else | ||
template <typename Tag, typename T, typename A, A Ptr_Eos> | ||
struct MakeUnsafeStringSetLargerSize { | ||
friend void unsafeStringSetLargerSizeImpl( | ||
@@ -262,7 +268,7 @@ struct MakeUnsafeStringSetLargerSize { | ||
void (std::basic_string<TYPE>::*)(std::size_t), \ | ||
&std::basic_string<TYPE>::_Eos>; \ | ||
FOLLY_DECLARE_STRING_RESIZE_WITHOUT_INIT_IMPL(TYPE) | ||
- | ||
+#endif // workaround | ||
#else | ||
#warning \ | ||
"No implementation for resizeWithoutInitialization of std::basic_string" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,124 +1,140 @@ | ||
diff --git a/src/3rdparty/chromium/third_party/webrtc/rtc_base/checks.h b/src/3rdparty/chromium/third_party/webrtc/rtc_base/checks.h | ||
index 459c6a5..687a364 100644 | ||
--- a/src/3rdparty/chromium/third_party/webrtc/rtc_base/checks.h | ||
+++ b/src/3rdparty/chromium/third_party/webrtc/rtc_base/checks.h | ||
@@ -224,60 +224,13 @@ ToStringVal MakeVal(const T& x) { | ||
template <typename... Ts> | ||
class LogStreamer; | ||
|
||
-// Base case: Before the first << argument. | ||
-template <> | ||
-class LogStreamer<> final { | ||
- public: | ||
- template <typename U, | ||
- typename V = decltype(MakeVal(std::declval<U>())), | ||
- absl::enable_if_t<std::is_arithmetic<U>::value || | ||
- std::is_enum<U>::value>* = nullptr> | ||
- RTC_FORCE_INLINE LogStreamer<V> operator<<(U arg) const { | ||
- return LogStreamer<V>(MakeVal(arg), this); | ||
- } | ||
- | ||
- template <typename U, | ||
- typename V = decltype(MakeVal(std::declval<U>())), | ||
- absl::enable_if_t<!std::is_arithmetic<U>::value && | ||
- !std::is_enum<U>::value>* = nullptr> | ||
- RTC_FORCE_INLINE LogStreamer<V> operator<<(const U& arg) const { | ||
- return LogStreamer<V>(MakeVal(arg), this); | ||
- } | ||
- | ||
-#if RTC_CHECK_MSG_ENABLED | ||
- template <typename... Us> | ||
- RTC_NORETURN RTC_FORCE_INLINE static void Call(const char* file, | ||
- const int line, | ||
- const char* message, | ||
- const Us&... args) { | ||
- static constexpr CheckArgType t[] = {Us::Type()..., CheckArgType::kEnd}; | ||
- FatalLog(file, line, message, t, args.GetVal()...); | ||
- } | ||
- | ||
- template <typename... Us> | ||
- RTC_NORETURN RTC_FORCE_INLINE static void CallCheckOp(const char* file, | ||
- const int line, | ||
- const char* message, | ||
- const Us&... args) { | ||
- static constexpr CheckArgType t[] = {CheckArgType::kCheckOp, Us::Type()..., | ||
- CheckArgType::kEnd}; | ||
- FatalLog(file, line, message, t, args.GetVal()...); | ||
- } | ||
-#else | ||
- template <typename... Us> | ||
- RTC_NORETURN RTC_FORCE_INLINE static void Call(const char* file, | ||
- const int line) { | ||
- FatalLog(file, line); | ||
- } | ||
-#endif | ||
-}; | ||
|
||
// Inductive case: We've already seen at least one << argument. The most recent | ||
// one had type `T`, and the earlier ones had types `Ts`. | ||
template <typename T, typename... Ts> | ||
class LogStreamer<T, Ts...> final { | ||
public: | ||
- RTC_FORCE_INLINE LogStreamer(T arg, const LogStreamer<Ts...>* prior) | ||
+ RTC_FORCE_INLINE LogStreamer(T arg, const LogStreamer<Ts...> * const prior) | ||
: arg_(arg), prior_(prior) {} | ||
|
||
template <typename U, | ||
@@ -328,6 +281,57 @@ class LogStreamer<T, Ts...> final { | ||
const LogStreamer<Ts...>* prior_; | ||
}; | ||
|
||
+ | ||
+// Base case: Before the first << argument. | ||
+template <> | ||
+class LogStreamer<> final { | ||
+ public: | ||
+ template <typename U, | ||
+ absl::enable_if_t<std::is_arithmetic<std::remove_cvref_t<U>>::value || | ||
+ std::is_enum<U>::value>* = nullptr> | ||
+ RTC_FORCE_INLINE auto operator<<(U arg) const { | ||
+ return LogStreamer<decltype(MakeVal(arg))>(MakeVal(arg), this); | ||
+ } | ||
+ | ||
+ template <typename U, | ||
+ absl::enable_if_t<!std::is_arithmetic<std::remove_cvref_t<U>>::value && | ||
+ !std::is_enum<U>::value>* = nullptr> | ||
+ RTC_FORCE_INLINE auto operator<<(const U& arg) const { | ||
+ return LogStreamer<decltype(MakeVal(arg))>(MakeVal(arg), this); | ||
+ } | ||
+ | ||
+ //RTC_FORCE_INLINE auto operator<<(const std::string& arg) const { | ||
+ // return LogStreamer<Val<CheckArgType::kStdString, const std::string*>>(MakeVal(arg), this); | ||
+ // | ||
+ | ||
+#if RTC_CHECK_MSG_ENABLED | ||
+ template <typename... Us> | ||
+ RTC_NORETURN RTC_FORCE_INLINE static void Call(const char* file, | ||
+ const int line, | ||
+ const char* message, | ||
+ const Us&... args) { | ||
+ static constexpr CheckArgType t[] = {Us::Type()..., CheckArgType::kEnd}; | ||
+ FatalLog(file, line, message, t, args.GetVal()...); | ||
+ } | ||
+ | ||
+ template <typename... Us> | ||
+ RTC_NORETURN RTC_FORCE_INLINE static void CallCheckOp(const char* file, | ||
+ const int line, | ||
+ const char* message, | ||
+ const Us&... args) { | ||
+ static constexpr CheckArgType t[] = {CheckArgType::kCheckOp, Us::Type()..., | ||
+ CheckArgType::kEnd}; | ||
+ FatalLog(file, line, message, t, args.GetVal()...); | ||
+ } | ||
+#else | ||
+ template <typename... Us> | ||
+ RTC_NORETURN RTC_FORCE_INLINE static void Call(const char* file, | ||
+ const int line) { | ||
+ FatalLog(file, line); | ||
+ } | ||
+#endif | ||
+}; | ||
+ | ||
template <bool isCheckOp> | ||
class FatalLogCall final { | ||
public: | ||
diff --git a/src/3rdparty/chromium/third_party/webrtc/rtc_base/checks.h b/src/3rdparty/chromium/third_party/webrtc/rtc_base/checks.h | ||
index 459c6a5..4bc8da8 100644 | ||
--- a/src/3rdparty/chromium/third_party/webrtc/rtc_base/checks.h | ||
+++ b/src/3rdparty/chromium/third_party/webrtc/rtc_base/checks.h | ||
@@ -224,76 +224,27 @@ ToStringVal MakeVal(const T& x) { | ||
template <typename... Ts> | ||
class LogStreamer; | ||
|
||
-// Base case: Before the first << argument. | ||
-template <> | ||
-class LogStreamer<> final { | ||
- public: | ||
- template <typename U, | ||
- typename V = decltype(MakeVal(std::declval<U>())), | ||
- absl::enable_if_t<std::is_arithmetic<U>::value || | ||
- std::is_enum<U>::value>* = nullptr> | ||
- RTC_FORCE_INLINE LogStreamer<V> operator<<(U arg) const { | ||
- return LogStreamer<V>(MakeVal(arg), this); | ||
- } | ||
- | ||
- template <typename U, | ||
- typename V = decltype(MakeVal(std::declval<U>())), | ||
- absl::enable_if_t<!std::is_arithmetic<U>::value && | ||
- !std::is_enum<U>::value>* = nullptr> | ||
- RTC_FORCE_INLINE LogStreamer<V> operator<<(const U& arg) const { | ||
- return LogStreamer<V>(MakeVal(arg), this); | ||
- } | ||
- | ||
-#if RTC_CHECK_MSG_ENABLED | ||
- template <typename... Us> | ||
- RTC_NORETURN RTC_FORCE_INLINE static void Call(const char* file, | ||
- const int line, | ||
- const char* message, | ||
- const Us&... args) { | ||
- static constexpr CheckArgType t[] = {Us::Type()..., CheckArgType::kEnd}; | ||
- FatalLog(file, line, message, t, args.GetVal()...); | ||
- } | ||
- | ||
- template <typename... Us> | ||
- RTC_NORETURN RTC_FORCE_INLINE static void CallCheckOp(const char* file, | ||
- const int line, | ||
- const char* message, | ||
- const Us&... args) { | ||
- static constexpr CheckArgType t[] = {CheckArgType::kCheckOp, Us::Type()..., | ||
- CheckArgType::kEnd}; | ||
- FatalLog(file, line, message, t, args.GetVal()...); | ||
- } | ||
-#else | ||
- template <typename... Us> | ||
- RTC_NORETURN RTC_FORCE_INLINE static void Call(const char* file, | ||
- const int line) { | ||
- FatalLog(file, line); | ||
- } | ||
-#endif | ||
-}; | ||
|
||
// Inductive case: We've already seen at least one << argument. The most recent | ||
// one had type `T`, and the earlier ones had types `Ts`. | ||
template <typename T, typename... Ts> | ||
class LogStreamer<T, Ts...> final { | ||
public: | ||
- RTC_FORCE_INLINE LogStreamer(T arg, const LogStreamer<Ts...>* prior) | ||
+ RTC_FORCE_INLINE LogStreamer(T arg, const LogStreamer<Ts...> * const prior) | ||
: arg_(arg), prior_(prior) {} | ||
|
||
template <typename U, | ||
- typename V = decltype(MakeVal(std::declval<U>())), | ||
absl::enable_if_t<std::is_arithmetic<U>::value || | ||
std::is_enum<U>::value>* = nullptr> | ||
- RTC_FORCE_INLINE LogStreamer<V, T, Ts...> operator<<(U arg) const { | ||
- return LogStreamer<V, T, Ts...>(MakeVal(arg), this); | ||
+ RTC_FORCE_INLINE auto operator<<(U arg) const { | ||
+ return LogStreamer<decltype(MakeVal(arg)), T, Ts...>(MakeVal(arg), this); | ||
} | ||
|
||
template <typename U, | ||
- typename V = decltype(MakeVal(std::declval<U>())), | ||
absl::enable_if_t<!std::is_arithmetic<U>::value && | ||
!std::is_enum<U>::value>* = nullptr> | ||
- RTC_FORCE_INLINE LogStreamer<V, T, Ts...> operator<<(const U& arg) const { | ||
- return LogStreamer<V, T, Ts...>(MakeVal(arg), this); | ||
+ RTC_FORCE_INLINE auto operator<<(const U& arg) const { | ||
+ return LogStreamer<decltype(MakeVal(arg)), T, Ts...>(MakeVal(arg), this); | ||
} | ||
|
||
#if RTC_CHECK_MSG_ENABLED | ||
@@ -328,6 +279,53 @@ class LogStreamer<T, Ts...> final { | ||
const LogStreamer<Ts...>* prior_; | ||
}; | ||
|
||
+ | ||
+// Base case: Before the first << argument. | ||
+template <> | ||
+class LogStreamer<> final { | ||
+ public: | ||
+ template <typename U, | ||
+ absl::enable_if_t<std::is_arithmetic<U>::value || | ||
+ std::is_enum<U>::value>* = nullptr> | ||
+ RTC_FORCE_INLINE auto operator<<(U arg) const { | ||
+ return LogStreamer<decltype(MakeVal(arg))>(MakeVal(arg), this); | ||
+ } | ||
+ | ||
+ template <typename U, | ||
+ absl::enable_if_t<!std::is_arithmetic<U>::value && | ||
+ !std::is_enum<U>::value>* = nullptr> | ||
+ RTC_FORCE_INLINE auto operator<<(const U& arg) const { | ||
+ return LogStreamer<decltype(MakeVal(arg))>(MakeVal(arg), this); | ||
+ } | ||
+ | ||
+#if RTC_CHECK_MSG_ENABLED | ||
+ template <typename... Us> | ||
+ RTC_NORETURN RTC_FORCE_INLINE static void Call(const char* file, | ||
+ const int line, | ||
+ const char* message, | ||
+ const Us&... args) { | ||
+ static constexpr CheckArgType t[] = {Us::Type()..., CheckArgType::kEnd}; | ||
+ FatalLog(file, line, message, t, args.GetVal()...); | ||
+ } | ||
+ | ||
+ template <typename... Us> | ||
+ RTC_NORETURN RTC_FORCE_INLINE static void CallCheckOp(const char* file, | ||
+ const int line, | ||
+ const char* message, | ||
+ const Us&... args) { | ||
+ static constexpr CheckArgType t[] = {CheckArgType::kCheckOp, Us::Type()..., | ||
+ CheckArgType::kEnd}; | ||
+ FatalLog(file, line, message, t, args.GetVal()...); | ||
+ } | ||
+#else | ||
+ template <typename... Us> | ||
+ RTC_NORETURN RTC_FORCE_INLINE static void Call(const char* file, | ||
+ const int line) { | ||
+ FatalLog(file, line); | ||
+ } | ||
+#endif | ||
+}; | ||
+ | ||
template <bool isCheckOp> | ||
class FatalLogCall final { | ||
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
Param( | ||
[Parameter(Mandatory=$true)] | ||
[int]$KeyNumber | ||
) | ||
|
||
$keyName = "key$KeyNumber" | ||
|
||
# Asset Cache: | ||
New-AzStorageAccountKey -ResourceGroupName vcpkg-asset-cache -StorageAccountName vcpkgassetcacheeastasia -KeyName $keyName | ||
|
||
# Binary Cache: | ||
New-AzStorageAccountKey -ResourceGroupName vcpkg-binary-cache -StorageAccountName vcpkgbinarycache -KeyName $keyName | ||
New-AzStorageAccountKey -ResourceGroupName vcpkg-binary-cache -StorageAccountName vcpkgbinarycacheeastasia -KeyName $keyName | ||
New-AzStorageAccountKey -ResourceGroupName vcpkg-binary-cache -StorageAccountName vcpkgbinarycachewus3 -KeyName $keyName |
Oops, something went wrong.