3 # This script is used by CI and build-in-docker.
7 if [ -n "${VERBOSE:-}" ]; then
11 if [ -n "${SPECIAL:-}" ]; then
14 [ -z ${JOBS:+x} ] && JOBS=$(getconf _NPROCESSORS_ONLN 2>/dev/null)
15 [ -z ${JOBS:+x} ] && JOBS=2
17 mkdir -p ${BUILDDIR:-build}
19 ${CMAKE_PREFIX:-} cmake ${CMAKE_PARAMS:-} ${CCACHE_LOC:-..}
20 ${CMAKE_PREFIX:-} cmake --build . ${EXTRA_CMAKE_BUILD_FLAGS:-} -- -j$JOBS
21 case "${RUN_TESTS:-all}" in
23 CC=${TEST_CC:-${CC}} ctest --output-on-failure -j$JOBS "$@"
26 wine ccache.exe --version
27 wine unittest/unittest.exe