fix: load darwin cross clang

This commit is contained in:
zijiren233 2024-09-19 13:48:52 +08:00
parent d1dba5d01f
commit 6a39603cf7
1 changed files with 2 additions and 2 deletions

View File

@ -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")