Skip to content

Commit 94b5422

Browse files
committed
legacy macos fixup
1 parent 8ed1d6e commit 94b5422

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

wheelbuild/config.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ function install_sccache {
152152
fi
153153
fetch_unpack "${base_url}/${archive_name}.tar.gz"
154154
if [ -e "$archive_name/sccache" ]; then
155+
mkdir -p "$BUILD_PREFIX/bin"
155156
cp "$archive_name/sccache" "$BUILD_PREFIX/bin/sccache"
156157
chmod +x $BUILD_PREFIX/bin/sccache
157158
export USE_SCCACHE=1
@@ -162,6 +163,7 @@ function install_sccache {
162163
local archive_name="sccache-v${SCCACHE_VERSION}-${PLAT}-unknown-linux-musl"
163164
fetch_unpack "${base_url}/${archive_name}.tar.gz"
164165
if [ -e "$archive_name/sccache" ]; then
166+
mkdir -p "$BUILD_PREFIX/bin"
165167
cp "$archive_name/sccache" "$BUILD_PREFIX/bin/sccache"
166168
chmod +x $BUILD_PREFIX/bin/sccache
167169
export USE_SCCACHE=1
@@ -185,7 +187,9 @@ function install_meson {
185187
HOMEBREW_PREFIX=/opt/homebrew
186188
fi
187189
$HOMEBREW_PREFIX/bin/brew install meson
188-
ln -s $HOMEBREW_PREFIX/bin/meson $BUILD_PREFIX/bin
190+
if [ ! -e $BUILD_PREFIX/bin/meson ]; then
191+
ln -s $HOMEBREW_PREFIX/bin/meson $BUILD_PREFIX/bin
192+
fi
189193
elif [ "$MB_PYTHON_VERSION" == "2.7" ]; then
190194
local python39_exe=$(cpython_path 3.9)/bin/python
191195
$python39_exe -m pip install meson
@@ -215,7 +219,9 @@ function install_ninja {
215219
HOMEBREW_PREFIX=/opt/homebrew
216220
fi
217221
$HOMEBREW_PREFIX/bin/brew install ninja
218-
ln -s $HOMEBREW_PREFIX/bin/ninja $BUILD_PREFIX/bin
222+
if [ ! -e $BUILD_PREFIX/bin/ninja ]; then
223+
ln -s $HOMEBREW_PREFIX/bin/ninja $BUILD_PREFIX/bin
224+
fi
219225
else
220226
$PYTHON_EXE -m pip install ninja==1.11.1
221227
local ninja_exe=$(dirname $PYTHON_EXE)/ninja

0 commit comments

Comments
 (0)