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