repo.or.cz
/
cabal.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Reimplement `cabal check` (#8427)
[cabal.git]
/
cabal-testsuite
/
PackageTests
/
CCompilerOverride
/
custom-cc
blob
67a1a91cdb271a8070bef61427a55387fc1e6301
1
#!/bin/bash
2
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
12
fi
13