2
0

Improved library check that doesn't depend on wording of error message.

This commit is contained in:
Maarten Billemont 2017-04-14 17:01:24 -04:00
parent e3edd42b88
commit f2fb16a0b9

View File

@ -339,7 +339,7 @@ mpw-tests() {
### TARGETS ### TARGETS
haslib() { haslib() {
! LC_ALL=C cc -l"$1" 2>&1 | grep -q 'library not found' return cc -l"$1" -x c -o /dev/null - <<< 'int main() { return 0; }'
} }
cc() { cc() {
if hash llvm-gcc 2>/dev/null; then if hash llvm-gcc 2>/dev/null; then