Skip to content

Commit 642c19b

Browse files
committed
tools/release: workaround stubgen timeout on macos M1
1 parent 91afd9d commit 642c19b

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

tools/release/build_delivery_macos.sh

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -291,21 +291,15 @@ function build_python() {
291291
cmake --build "temp_python${PY_VERSION}" --target ortools -j8 -v
292292
echo "DONE" | tee -a build.log
293293

294-
if [[ ${PLATFORM} == "x86_64" ]]; then
295-
echo -n " Build all few times..." | tee -a build.log
296-
# on macos X86_64 stubgen will timeout -> need to build few times
297-
cmake --build "temp_python${PY_VERSION}" -j4 -v || true
298-
sleep 10
299-
cmake --build "temp_python${PY_VERSION}" -v || true
300-
echo "DONE" | tee -a build.log
301-
echo -n " ReBuild all..." | tee -a build.log
302-
cmake --build "temp_python${PY_VERSION}" -j4 -v
303-
echo "DONE" | tee -a build.log
304-
else
305-
echo -n " Build all..." | tee -a build.log
306-
cmake --build "temp_python${PY_VERSION}" -j8 -v
307-
echo "DONE" | tee -a build.log
308-
fi
294+
echo -n " Build all few times..." | tee -a build.log
295+
# on macos stubgen will timeout -> need to build few times
296+
cmake --build "temp_python${PY_VERSION}" -j4 -v || true
297+
sleep 10
298+
cmake --build "temp_python${PY_VERSION}" -v || true
299+
echo "DONE" | tee -a build.log
300+
echo -n " ReBuild all..." | tee -a build.log
301+
cmake --build "temp_python${PY_VERSION}" -j4 -v
302+
echo "DONE" | tee -a build.log
309303

310304
echo -n " Check libortools.dylib..." | tee -a build.log
311305
otool -L "temp_python${PY_VERSION}/lib/libortools.dylib" | grep -vqz "/Users"

0 commit comments

Comments
 (0)