#!/bin/sh -e

case "${!#}" in
  (uri.c | dialog.c)
    exec gcc "$@" ;;
  (*)
    exec /usr/bin/sampler-cc \
    --threads \
    --exclude-function=read_whole_file \
    --sampler-scheme=branches \
    --sampler-scheme=g-object-unref \
    "$@" ;;
esac
