Improved library check that doesn't depend on wording of error message.
This commit is contained in:
parent
e3edd42b88
commit
f2fb16a0b9
@ -339,7 +339,7 @@ mpw-tests() {
|
||||
### TARGETS
|
||||
|
||||
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() {
|
||||
if hash llvm-gcc 2>/dev/null; then
|
||||
|
Loading…
Reference in New Issue
Block a user