# loaded and called from program's icm_bootstrap scripts

precomp()
{
    echo "
Buiding tmp/spch.gch and using .ih.gch files"

    OPTS='g++ -Wall -Werror -O2 -c -o $2 '
    OPTS="$OPTS ${ICMAKE_CPPSTD}${opts} -x c++header \$1"

    ../tmp/usr/libexec/icmake/icm-spch $1 --all spch tmp/ "'${OPTS}'"

    rm spch
}


