Commit 93497e3 1 parent 8ed1d6e commit 93497e3 Copy full SHA for 93497e3
File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ function install_sccache {
152
152
fi
153
153
fetch_unpack " ${base_url} /${archive_name} .tar.gz"
154
154
if [ -e " $archive_name /sccache" ]; then
155
+ mkdir -p " $BUILD_PREFIX /bin"
155
156
cp " $archive_name /sccache" " $BUILD_PREFIX /bin/sccache"
156
157
chmod +x $BUILD_PREFIX /bin/sccache
157
158
export USE_SCCACHE=1
@@ -162,6 +163,7 @@ function install_sccache {
162
163
local archive_name=" sccache-v${SCCACHE_VERSION} -${PLAT} -unknown-linux-musl"
163
164
fetch_unpack " ${base_url} /${archive_name} .tar.gz"
164
165
if [ -e " $archive_name /sccache" ]; then
166
+ mkdir -p " $BUILD_PREFIX /bin"
165
167
cp " $archive_name /sccache" " $BUILD_PREFIX /bin/sccache"
166
168
chmod +x $BUILD_PREFIX /bin/sccache
167
169
export USE_SCCACHE=1
@@ -215,7 +217,9 @@ function install_ninja {
215
217
HOMEBREW_PREFIX=/opt/homebrew
216
218
fi
217
219
$HOMEBREW_PREFIX /bin/brew install ninja
218
- ln -s $HOMEBREW_PREFIX /bin/ninja $BUILD_PREFIX /bin
220
+ if [ ! -e $BUILD_PREFIX /bin/ninja ]; then
221
+ ln -s $HOMEBREW_PREFIX /bin/ninja $BUILD_PREFIX /bin
222
+ fi
219
223
else
220
224
$PYTHON_EXE -m pip install ninja==1.11.1
221
225
local ninja_exe=$( dirname $PYTHON_EXE ) /ninja
You can’t perform that action at this time.
0 commit comments