From 5c02945088aefa314c4adec3bb733b548a05edab Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Thu, 8 Oct 2020 01:49:46 +0200 Subject: [PATCH] Reduce load --- jenkins/scripts/cross_compile.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jenkins/scripts/cross_compile.sh b/jenkins/scripts/cross_compile.sh index f441b9f..71140e1 100755 --- a/jenkins/scripts/cross_compile.sh +++ b/jenkins/scripts/cross_compile.sh @@ -15,14 +15,14 @@ TOOLCHAIN_FILE=$TRAVIS_BUILD_DIR/toolchain-win64.cmake ## Install zlib for windows cd /tmp/zlib_cross export CC=x86_64-w64-mingw32-gcc-posix -./configure --prefix=/tmp/zlib_cross -make -f win32/Makefile.gcc BINARY_PATH=/tmp/zlib_cross/bin INCLUDE_PATH=/tmp/zlib_cross/include LIBRARY_PATH=/tmp/zlib_cross/lib PREFIX=x86_64-w64-mingw32- install +nice -n 5 chrt -b 0 ./configure --prefix=/tmp/zlib_cross +nice -n 5 chrt -b 0 make -f win32/Makefile.gcc BINARY_PATH=/tmp/zlib_cross/bin INCLUDE_PATH=/tmp/zlib_cross/include LIBRARY_PATH=/tmp/zlib_cross/lib PREFIX=x86_64-w64-mingw32- install ## Install openssl for windows cd /tmp/openssl_cross export CC= -./Configure --cross-compile-prefix=x86_64-w64-mingw32- --prefix=/tmp/openssl_cross mingw64 shared -sudo make install +nice -n 5 chrt -b 0 ./Configure --cross-compile-prefix=x86_64-w64-mingw32- --prefix=/tmp/openssl_cross mingw64 shared +nice -n 5 chrt -b 0 sudo make install # ====== Prepare TdLib # Cross compilation preparation (also needed for split sources)