#!/bin/sh
# Build the memory hog used by run.sh (guest, base system compiler).
set -e
cd "$(dirname "$0")"
cc -O2 -o /tmp/hog hog.c
echo "hog built: $(ls -l /tmp/hog)"
# For fix validation, the patched kernel is built in the guest's /usr/src:
#   cd /usr/src && patch -p1 < fix_2879.diff && \
#   make -j6 nativekernel KERNCONF=X86_64_GENERIC
# (full untrimmed compiler output in fix_build.log)
