Merge pull request #10699 from cabalism/doc/path-command-config-group
[cabal.git] / cabal-testsuite / PackageTests / CCompilerOverride / custom-cc
blobfa41c1c4c88373a8bc1758e6d5fd156a6e603d73
1 #!/usr/bin/env bash
3 if which cc >/dev/null 2>&1; then
4 cc -DNOERROR6 "${@}"
5 elif which gcc >/dev/null 2>&1; then
6 gcc -DNOERROR6 "${@}"
7 elif which clang >/dev/null 2>&1; then
8 clang -DNOERROR6 "${@}"
9 else
10 echo "Cannot find C compiler" >&2
11 exit 1