From 6a39603cf7fb4cf5dbdb71b8ae73cb1165314a2b Mon Sep 17 00:00:00 2001 From: zijiren233 Date: Thu, 19 Sep 2024 13:48:52 +0800 Subject: [PATCH] fix: load darwin cross clang --- script/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/build.sh b/script/build.sh index 0db6e037..1933bff4 100755 --- a/script/build.sh +++ b/script/build.sh @@ -609,8 +609,8 @@ function initOsxCGO() { cc="oa64-clang" cxx="oa64-clang++" elif [[ -x "${CGO_CROSS_COMPILER_DIR}/osxcross/bin/oa64-clang" ]] && [[ -x "${CGO_CROSS_COMPILER_DIR}/osxcross/bin/oa64-clang++" ]]; then - cc="/usr/local/osxcross/bin/oa64-clang" - cxx="/usr/local/osxcross/bin/oa64-clang++" + cc="${CGO_CROSS_COMPILER_DIR}/osxcross/bin/oa64-clang" + cxx="${CGO_CROSS_COMPILER_DIR}/osxcross/bin/oa64-clang++" EXTRA_PATH="${CGO_CROSS_COMPILER_DIR}/osxcross/bin" else local ubuntu_version=$(lsb_release -rs 2>/dev/null || echo "18.04")