# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Exit with error when using an undefined variable
-set -u
+set -exu
#Check if ccache is present
#if [ -d /usr/lib/ccache ]; then
# Build to out of tree dir
#make -j$nbrProc O="${BUILDDIR}"
-make O="${BUILDDIR}" prepare
-make -j${NPROC} O="${BUILDDIR}" modules
+make O="${BUILDDIR}" modules_prepare
# Clean up artifact directory to keep only relevant stuff for lttng-modules
cd "${BUILDDIR}"