Download patches/abseil_windows_gnullvm_thread_identity.patch from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 861 Bytes
-
https://huggingface.co/SaylorTwift/codex/resolve/main/patches/abseil_windows_gnullvm_thread_identity.patch
- Command line
-
hf download hf://SaylorTwift/codex/patches/abseil_windows_gnullvm_thread_identity.patch
-
curl -L -o abseil_windows_gnullvm_thread_identity.patch https://huggingface.co/SaylorTwift/codex/resolve/main/patches/abseil_windows_gnullvm_thread_identity.patch
861 Bytes
| # What: avoid MinGW pthread TLS linkage in Abseil thread identity selection. | |
| # Scope: one MinGW-specific preprocessor branch in Abseil's internal | |
| # thread-identity mode selection; no other Abseil behavior changes. | |
| diff --git a/absl/base/internal/thread_identity.h b/absl/base/internal/thread_identity.h | |
| --- a/absl/base/internal/thread_identity.h | |
| +++ b/absl/base/internal/thread_identity.h | |
| #error ABSL_THREAD_IDENTITY_MODE cannot be directly set | |
| #elif defined(ABSL_FORCE_THREAD_IDENTITY_MODE) | |
| #define ABSL_THREAD_IDENTITY_MODE ABSL_FORCE_THREAD_IDENTITY_MODE | |
| +#elif defined(__MINGW32__) | |
| +#define ABSL_THREAD_IDENTITY_MODE ABSL_THREAD_IDENTITY_MODE_USE_CPP11 | |
| #elif defined(_WIN32) && !defined(__MINGW32__) | |
| #define ABSL_THREAD_IDENTITY_MODE ABSL_THREAD_IDENTITY_MODE_USE_CPP11 | |
| #elif defined(__APPLE__) && defined(ABSL_HAVE_THREAD_LOCAL) | |