11 for d in "$WORKSPACE/build"
15 rm -rf "$d" || die "Could not remote $d"
20 # Get an ON/OFF string from a command:
22 if "$@" > /dev/null ; then
29 ### Cleanup previous runs
31 ! [ -z "$WORKSPACE" ] || die "No WORKSPACE"
32 [ -d "$WORKSPACE" ] || die "WORKSPACE ($WORKSPACE) does not exist"
36 for d in "$WORKSPACE/build"
38 mkdir "$d" || die "Could not create $d"
41 NUMPROC="$(nproc)" || NUMPROC=1
45 for buildjava in ON OFF
47 for builddebug in ON OFF
49 for buildsmpi in ON OFF
53 echo "build with java=${buildjava}, debug=${builddebug}, SMPI=${buildsmpi}, MC=${buildmc}"
54 cmake -Denable_documentation=OFF -Denable_lua=ON -Denable_java=${buildjava} \
55 -Denable_compile_optimizations=OFF -Denable_compile_warnings=ON \
56 -Denable_jedule=ON -Denable_mallocators=ON -Denable_debug=${builddebug} \
57 -Denable_smpi=${buildsmpi} -Denable_smpi_MPICH3_testsuite=${buildsmpi} -Denable_model-checking=${buildmc} \
58 -Denable_memcheck=OFF -Denable_memcheck_xml=OFF -Denable_smpi_ISP_testsuite=OFF \
59 -Denable_ns3=$(onoff test "$buildmc" != "ON") -Denable_coverage=OFF $WORKSPACE