fix mac build 2

This commit is contained in:
t1amak
2025-12-10 10:34:02 +01:00
parent 13b2383fbd
commit 465a5c6350
2 changed files with 14 additions and 2 deletions
@@ -70,6 +70,12 @@ clang_bin="$(command -v "${darwin_triple}-clang" || true)"
clangxx_bin="$(command -v "${darwin_triple}-clang++" || true)"
clangas_bin="$(command -v "${darwin_triple}-as" || true)"
install_name_tool_bin="$(command -v "${darwin_triple}-install_name_tool" || true)"
if [ -z "$install_name_tool_bin" ]; then
install_name_tool_bin="$(command -v "${darwin_triple}-install-name-tool" || true)"
fi
if [ -z "$install_name_tool_bin" ]; then
install_name_tool_bin="$(command -v llvm-install-name-tool || true)"
fi
if [ -z "$clang_bin" ] || [ -z "$clangxx_bin" ] || [ -z "$clangas_bin" ]; then
echo "macOS cross toolchain binaries not found in PATH (prefix ${darwin_triple})" >&2
exit 1
@@ -78,7 +84,7 @@ if [ -z "$install_name_tool_bin" ]; then
install_name_tool_bin="$(dirname "$clang_bin")/${darwin_triple}-install_name_tool"
fi
if [ ! -x "$install_name_tool_bin" ]; then
echo "macOS install_name_tool not found (looked for ${darwin_triple}-install_name_tool)" >&2
echo "macOS install_name_tool not found (looked for ${darwin_triple}-install_name_tool / install-name-tool)" >&2
exit 1
fi
@@ -70,6 +70,12 @@ clang_bin="$(command -v "${darwin_triple}-clang" || true)"
clangxx_bin="$(command -v "${darwin_triple}-clang++" || true)"
clangas_bin="$(command -v "${darwin_triple}-as" || true)"
install_name_tool_bin="$(command -v "${darwin_triple}-install_name_tool" || true)"
if [ -z "$install_name_tool_bin" ]; then
install_name_tool_bin="$(command -v "${darwin_triple}-install-name-tool" || true)"
fi
if [ -z "$install_name_tool_bin" ]; then
install_name_tool_bin="$(command -v llvm-install-name-tool || true)"
fi
if [ -z "$clang_bin" ] || [ -z "$clangxx_bin" ] || [ -z "$clangas_bin" ]; then
echo "macOS cross toolchain binaries not found in PATH (prefix ${darwin_triple})" >&2
exit 1
@@ -78,7 +84,7 @@ if [ -z "$install_name_tool_bin" ]; then
install_name_tool_bin="$(dirname "$clang_bin")/${darwin_triple}-install_name_tool"
fi
if [ ! -x "$install_name_tool_bin" ]; then
echo "macOS install_name_tool not found (looked for ${darwin_triple}-install_name_tool)" >&2
echo "macOS install_name_tool not found (looked for ${darwin_triple}-install_name_tool / install-name-tool)" >&2
exit 1
fi