From e1ae9f0081bc99491ed14714eeb93156cf1b377f Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Fri, 15 Jun 2018 13:12:32 -0400 Subject: [PATCH] build: separate -debug and -release build timing Producing `.o` from `.ji` files takes a massive amount of memory (currently), so it's likely to lead to less memory thrashing and OOM-kills to do this step in serial --- .circleci/config.yml | 2 +- .freebsdci.sh | 2 +- .travis.yml | 1 + contrib/windows/appveyor_build.sh | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 165c4aa48a129..683e151e23c10 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -43,7 +43,7 @@ jobs: contrib/download_cmake.sh && make -j3 -C deps || make - run: | # build julia, output ccache stats when done - make -j3 all && + make -j3 release && make prefix=/tmp/julia install && ccache -s && make build-stats diff --git a/.freebsdci.sh b/.freebsdci.sh index 0cb26c0ca769c..d55ca329e4802 100755 --- a/.freebsdci.sh +++ b/.freebsdci.sh @@ -32,7 +32,7 @@ compile(){ export USECCACHE=1 gmake check-whitespace - gmake all -j $MAKE_JOBS_NUMBER + gmake release -j $MAKE_JOBS_NUMBER } runtests(){ diff --git a/.travis.yml b/.travis.yml index 50b9c6700b80e..38a4414456b8c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -127,6 +127,7 @@ script: echo "-- end of deps build log -----------------------------------------------"; false; } # compile / install Julia + - make $BUILDOPTS NO_GIT=1 prefix=/tmp/julia release | moreutils/ts -s "%.s" - make $BUILDOPTS NO_GIT=1 prefix=/tmp/julia install | moreutils/ts -s "%.s" - make $BUILDOPTS NO_GIT=1 build-stats - du -sk /tmp/julia/* diff --git a/contrib/windows/appveyor_build.sh b/contrib/windows/appveyor_build.sh index 482e8c88349b7..0984643aa88af 100755 --- a/contrib/windows/appveyor_build.sh +++ b/contrib/windows/appveyor_build.sh @@ -215,7 +215,7 @@ fi echo 'FORCE_ASSERTIONS = 1' >> Make.user cat Make.user -make -j3 VERBOSE=1 all +make -j3 VERBOSE=1 release make -j3 VERBOSE=1 install make VERBOSE=1 JULIA=../../usr/bin/julia.exe BIN=. "$(make print-CC)" -C test/embedding release cp usr/bin/busybox.exe julia-*/bin