diff --git a/fix-mingw-complier-error.patch b/fix-mingw-complier-error.patch new file mode 100644 index 0000000000000000000000000000000000000000..4c6fadf42159e68baa31b59ae0f11784fca263cc --- /dev/null +++ b/fix-mingw-complier-error.patch @@ -0,0 +1,12 @@ +diff -uprN a/absl/debugging/symbolize.cc b/absl/debugging/symbolize.cc +--- a/absl/debugging/symbolize.cc 2025-02-03 23:50:45.000000000 +0800 ++++ b/absl/debugging/symbolize.cc 2025-06-05 15:55:46.561863000 +0800 +@@ -20,7 +20,7 @@ + #include + #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + // UWP doesn't have access to win32 APIs. +-#define ABSL_INTERNAL_HAVE_SYMBOLIZE_WIN32 ++// #define ABSL_INTERNAL_HAVE_SYMBOLIZE_WIN32 + #endif + #endif + \ No newline at end of file diff --git a/install.sh b/install.sh index 22cc967258dc023e71004463670705e719410be3..48e62b9ce645287eb1a282c4883c859d605beea1 100755 --- a/install.sh +++ b/install.sh @@ -16,6 +16,7 @@ fi tar zxvf $2/abseil-cpp-20250127.0.tar.gz mv abseil-cpp-20250127.0 abseil-cpp cd abseil-cpp +patch -p1 < $2/fix-mingw-complier-error.patch flock -u 100 } 100<>lock_file.lock exit 0 \ No newline at end of file diff --git a/install_no_lock.sh b/install_no_lock.sh index c64695523e12465cd0840a09bf93f66c2461a39e..f75761f967cdeaa5123f0b91cc3007a2186c4216 100755 --- a/install_no_lock.sh +++ b/install_no_lock.sh @@ -14,5 +14,5 @@ fi tar zxvf abseil-cpp-20250127.0.tar.gz mv abseil-cpp-20250127.0 abseil-cpp cd $1/abseil-cpp - +patch -p1 < $1/fix-mingw-complier-error.patch exit 0