[haiku] Q: Haiku's build system & -jN

  • From: Matt Madia <mattmadia@xxxxxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Wed, 3 Mar 2010 02:12:00 +0000

With the recent commits for bash(r35619), icu(r35627, r35628), &
tcpdump (r35700) , Haiku's build system is much more reliable under
multiple-jobs.

On my i3 (dual core + HT), i've been able to run 6 iterations (and
counting!) of this script without failure.
Would anyone with quad cores or even i7's be willing to test this
script? To note, it needs to be run within the generated folder.

{{{
#!/bin/bash
set -o errexit

JOBS=8

function MultiJobFail()
{
        HAIKU_ATTEMPT=0
        while true ; do
                ((HAIKU_ATTEMPT++))
                echo $HAIKU_ATTEMPT
                rm -rf objects/
                rm -rf tmp/
                time ((jam -qj${JOBS} &> log) || (sed -n -e '/^...failed/p' log 
&& false))
        done    
}

MultiJobFail

}}}

--mmadia

Other related posts:

  • » [haiku] Q: Haiku's build system & -jN - Matt Madia