diff --git a/BUILD.gn b/BUILD.gn index 1f9be2bb19e3822ae1d278d42d6eed5c59286e38..bc68cef87b018568cab1eaeeda41a31b95921157 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -16,7 +16,7 @@ import("./configure_copts.gni") action("abseil_cpp_action") { if (host_os == "mac") { - 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 0000000000000000000000000000000000000000..ff999fb7e738e13e4d09a3aad4f5c811a590c56d --- /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