Add test cases that reproduce #7241.
[cabal.git] / cabal-testsuite / PackageTests / CCompilerOverride / custom-cc
blob67a1a91cdb271a8070bef61427a55387fc1e6301
1 #!/bin/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