diff --git a/CMake/AbseilDll.cmake b/CMake/AbseilDll.cmake index 38d0936..a003649 100644 --- a/CMake/AbseilDll.cmake +++ b/CMake/AbseilDll.cmake
@@ -829,6 +829,9 @@ ${_dll_libs} ${ABSL_DEFAULT_LINKOPTS} $<$<BOOL:${ANDROID}>:-llog> + $<$<BOOL:${MINGW}>:-ladvapi32> + $<$<BOOL:${MINGW}>:-ldbghelp> + $<$<BOOL:${MINGW}>:-lbcrypt> ) set_target_properties(${_dll} PROPERTIES LINKER_LANGUAGE "CXX"
diff --git a/MODULE.bazel b/MODULE.bazel index 29e624a..bc5f777 100644 --- a/MODULE.bazel +++ b/MODULE.bazel
@@ -25,13 +25,13 @@ dev_dependency = True) use_repo(cc_configure, "local_config_cc") -bazel_dep(name = "rules_cc", version = "0.1.1") -bazel_dep(name = "bazel_skylib", version = "1.7.1") -bazel_dep(name = "platforms", version = "0.0.11") +bazel_dep(name = "rules_cc", version = "0.2.0") +bazel_dep(name = "bazel_skylib", version = "1.8.1") +bazel_dep(name = "platforms", version = "1.0.0") bazel_dep( name = "google_benchmark", - version = "1.9.2", + version = "1.9.4", dev_dependency = True, )
diff --git a/absl/algorithm/BUILD.bazel b/absl/algorithm/BUILD.bazel index 0446a0c..7ce9a23 100644 --- a/absl/algorithm/BUILD.bazel +++ b/absl/algorithm/BUILD.bazel
@@ -68,7 +68,6 @@ deps = [ ":algorithm", "//absl/base:config", - "//absl/base:core_headers", "//absl/base:nullability", "//absl/meta:type_traits", ],
diff --git a/absl/algorithm/CMakeLists.txt b/absl/algorithm/CMakeLists.txt index f3dd138..b26c9c2 100644 --- a/absl/algorithm/CMakeLists.txt +++ b/absl/algorithm/CMakeLists.txt
@@ -49,7 +49,6 @@ DEPS absl::algorithm absl::config - absl::core_headers absl::meta absl::nullability PUBLIC
diff --git a/absl/algorithm/container.h b/absl/algorithm/container.h index 6f9c193..017131b 100644 --- a/absl/algorithm/container.h +++ b/absl/algorithm/container.h
@@ -52,7 +52,6 @@ #include "absl/algorithm/algorithm.h" #include "absl/base/config.h" -#include "absl/base/macros.h" #include "absl/base/nullability.h" #include "absl/meta/type_traits.h"
diff --git a/absl/base/config.h b/absl/base/config.h index b1c5227..b247d08 100644 --- a/absl/base/config.h +++ b/absl/base/config.h
@@ -364,6 +364,7 @@ // AsmJS __asmjs__ // WebAssembly (Emscripten) __EMSCRIPTEN__ // Fuchsia __Fuchsia__ +// WebAssembly (WASI) _WASI_EMULATED_MMAN (implies __wasi__) // // Note that since Android defines both __ANDROID__ and __linux__, one // may probe for either Linux or Android by simply testing for __linux__. @@ -379,7 +380,8 @@ defined(__asmjs__) || defined(__EMSCRIPTEN__) || defined(__Fuchsia__) || \ defined(__sun) || defined(__myriad2__) || defined(__HAIKU__) || \ defined(__OpenBSD__) || defined(__NetBSD__) || defined(__QNX__) || \ - defined(__VXWORKS__) || defined(__hexagon__) || defined(__XTENSA__) + defined(__VXWORKS__) || defined(__hexagon__) || defined(__XTENSA__) || \ + defined(_WASI_EMULATED_MMAN) #define ABSL_HAVE_MMAP 1 #endif
diff --git a/absl/base/internal/unscaledcycleclock.cc b/absl/base/internal/unscaledcycleclock.cc index 68f9273..dca7cba 100644 --- a/absl/base/internal/unscaledcycleclock.cc +++ b/absl/base/internal/unscaledcycleclock.cc
@@ -85,6 +85,10 @@ double UnscaledCycleClock::Frequency() { #ifdef __GLIBC__ return __ppc_get_timebase_freq(); +#elif defined(__linux__) + // Fallback for musl + ppc64le: use constant timebase frequency (512 MHz) + // Must come after __GLIBC__. + return static_cast<double>(512000000); #elif defined(_AIX) // This is the same constant value as returned by // __ppc_get_timebase_freq().
diff --git a/absl/log/CMakeLists.txt b/absl/log/CMakeLists.txt index eb19bec..94fedf3 100644 --- a/absl/log/CMakeLists.txt +++ b/absl/log/CMakeLists.txt
@@ -28,7 +28,6 @@ absl::core_headers absl::log_internal_check_op absl::log_internal_conditions - absl::log_internal_message absl::log_internal_strip )
diff --git a/absl/log/internal/BUILD.bazel b/absl/log/internal/BUILD.bazel index 1ba9d76..dc86320 100644 --- a/absl/log/internal/BUILD.bazel +++ b/absl/log/internal/BUILD.bazel
@@ -59,7 +59,6 @@ deps = [ ":check_op", ":conditions", - ":log_message", ":strip", "//absl/base:core_headers", ],
diff --git a/absl/log/internal/check_impl.h b/absl/log/internal/check_impl.h index 00f25f8..dc2e214 100644 --- a/absl/log/internal/check_impl.h +++ b/absl/log/internal/check_impl.h
@@ -12,13 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. +// SKIP_ABSL_INLINE_NAMESPACE_CHECK + #ifndef ABSL_LOG_INTERNAL_CHECK_IMPL_H_ #define ABSL_LOG_INTERNAL_CHECK_IMPL_H_ #include "absl/base/optimization.h" #include "absl/log/internal/check_op.h" #include "absl/log/internal/conditions.h" -#include "absl/log/internal/log_message.h" #include "absl/log/internal/strip.h" // CHECK
diff --git a/absl/synchronization/lifetime_test.cc b/absl/synchronization/lifetime_test.cc index 603234a..1c11431 100644 --- a/absl/synchronization/lifetime_test.cc +++ b/absl/synchronization/lifetime_test.cc
@@ -45,7 +45,7 @@ CHECK(!*state) << "*state not initialized"; { - absl::MutexLock lock(mutex); + absl::MutexLock lock(*mutex); notification->Notify(); CHECK(notification->HasBeenNotified()) << "invalid Notification"; @@ -64,7 +64,7 @@ notification->WaitForNotification(); CHECK(notification->HasBeenNotified()) << "invalid Notification"; { - absl::MutexLock lock(mutex); + absl::MutexLock lock(*mutex); *state = true; condvar->Signal(); }
diff --git a/absl/synchronization/mutex.h b/absl/synchronization/mutex.h index 781135b..77ab7c4 100644 --- a/absl/synchronization/mutex.h +++ b/absl/synchronization/mutex.h
@@ -646,7 +646,7 @@ explicit ReaderMutexLock(Mutex& mu ABSL_INTERNAL_ATTRIBUTE_CAPTURED_BY(this)) ABSL_SHARED_LOCK_FUNCTION(mu) : mu_(mu) { - mu.ReaderLock(); + mu.lock_shared(); } explicit ReaderMutexLock(Mutex* absl_nonnull mu) ABSL_SHARED_LOCK_FUNCTION(mu) @@ -682,7 +682,7 @@ explicit WriterMutexLock(Mutex& mu ABSL_INTERNAL_ATTRIBUTE_CAPTURED_BY(this)) ABSL_EXCLUSIVE_LOCK_FUNCTION(mu) : mu_(mu) { - mu.WriterLock(); + mu.lock(); } explicit WriterMutexLock(Mutex* absl_nonnull mu) @@ -705,7 +705,7 @@ WriterMutexLock& operator=(const WriterMutexLock&) = delete; WriterMutexLock& operator=(WriterMutexLock&&) = delete; - ~WriterMutexLock() ABSL_UNLOCK_FUNCTION() { this->mu_.WriterUnlock(); } + ~WriterMutexLock() ABSL_UNLOCK_FUNCTION() { this->mu_.unlock(); } private: Mutex& mu_; @@ -1096,7 +1096,7 @@ explicit ReleasableMutexLock(Mutex& mu ABSL_INTERNAL_ATTRIBUTE_CAPTURED_BY( this)) ABSL_EXCLUSIVE_LOCK_FUNCTION(mu) : mu_(&mu) { - this->mu_->Lock(); + this->mu_->lock(); } explicit ReleasableMutexLock(Mutex* absl_nonnull mu)
diff --git a/absl/synchronization/mutex_benchmark.cc b/absl/synchronization/mutex_benchmark.cc index 3557565..d2c6495 100644 --- a/absl/synchronization/mutex_benchmark.cc +++ b/absl/synchronization/mutex_benchmark.cc
@@ -30,7 +30,7 @@ void BM_Mutex(benchmark::State& state) { static absl::NoDestructor<absl::Mutex> mu; for (auto _ : state) { - absl::MutexLock lock(mu.get()); + absl::MutexLock lock(*mu.get()); } } BENCHMARK(BM_Mutex)->UseRealTime()->Threads(1)->ThreadPerCpu(); @@ -38,7 +38,7 @@ void BM_ReaderLock(benchmark::State& state) { static absl::NoDestructor<absl::Mutex> mu; for (auto _ : state) { - absl::ReaderMutexLock lock(mu.get()); + absl::ReaderMutexLock lock(*mu.get()); } } BENCHMARK(BM_ReaderLock)->UseRealTime()->Threads(1)->ThreadPerCpu();
diff --git a/absl/synchronization/mutex_test.cc b/absl/synchronization/mutex_test.cc index 82a2c06..793acf8 100644 --- a/absl/synchronization/mutex_test.cc +++ b/absl/synchronization/mutex_test.cc
@@ -357,7 +357,7 @@ int c = (*c0)++; mu->unlock(); cb(c); - absl::MutexLock l(mu); + absl::MutexLock l(*mu); (*c1)++; cv->Signal(); } @@ -871,7 +871,7 @@ auto mu = absl::make_unique<absl::Mutex[]>(kNumLocks); for (int j = 0; j != kNumLocks; j++) { if ((j % 2) == 0) { - mu[j].WriterLock(); + mu[j].lock(); } else { mu[j].lock_shared(); }