From 2e2ebf77e5ecd20ed721d71ecb21235900eaf0d7 Mon Sep 17 00:00:00 2001 From: ganchuantao1 Date: Fri, 4 Jul 2025 09:23:10 +0800 Subject: [PATCH] =?UTF-8?q?=20=20=20=20=E4=BF=AE=E5=A4=8Dabseil=20?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E9=94=99=E8=AF=AF=20=20=20=20=20Signed-off-b?= =?UTF-8?q?y:ganchuantao1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ganchuantao1 --- BUILD.gn | 2 +- install_for_mac.sh | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100755 install_for_mac.sh diff --git a/BUILD.gn b/BUILD.gn index 8e540d8..2fb0b81 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -16,7 +16,7 @@ import("./configure_copts.gni") action("abseil_cpp_action") { if (is_mac || is_ios) { - script = "//third_party/abseil-cpp/install_no_lock.sh" + script = "//third_party/abseil-cpp/install_for_mac.sh" } else { script = "//third_party/abseil-cpp/install.sh" } diff --git a/install_for_mac.sh b/install_for_mac.sh new file mode 100755 index 0000000..ff999fb --- /dev/null +++ b/install_for_mac.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation version 2.1 +# of the License. +# +# Copyright(c) 2023 Huawei Device Co., Ltd. + +set -e +cd $1 +if [ -d "abseil-cpp" ];then + rm -rf abseil-cpp +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 +exit 0 -- Gitee