7 echo ERROR: An error was encountered with the build.
8 cat /tmp/cmake_build.log
12 bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
14 "$@" &> /tmp/cmake_build.log
17 rm /tmp/cmake_build.log
21 # LLVM 12 requires CMake 3.13.4 or higher.
22 # This script is not necessary for images using Ubuntu 20.04 or newer.
24 curl -L https://github.com/Kitware/CMake/releases/download/v$CMAKE/cmake-$CMAKE.tar.gz | tar xzf -
28 hide_output ../cmake-$CMAKE/configure
29 hide_output make -j$(nproc)
30 hide_output make install