testsuite: fixing the linker-version test

master
Gabriel Scherer 2016-02-23 17:13:10 -05:00
parent dd5dc84ff7
commit 8dcb6877c7
1 changed files with 5 additions and 5 deletions

View File

@ -9,11 +9,11 @@ default:
elif $(BYTECODE_ONLY); then \
echo " => skipped (bytecode only)"; \
else \
LD="`ld -v 2>&1`"; \
LDKNOWN="`echo $$LD | grep \"ld64-[0-9]*\"`"; \
LDVER="`echo $$LD | sed \"s/ld64-\\([0-9]*\\).*/\\1/\"`"; \
if [[ -z "$$LDKNOWN" ]]; then \
echo " => skipped (expecting ld version 'ld64-*', got '$$LD')"; \
LDFULL="`ld -v 2>&1`"; \
LD="`echo $$LDFULL | grep -o \"ld64-[0-9]*\"`"; \
LDVER="`echo $$LD | sed \"s/ld64-//\"`"; \
if [[ -z "$$LD" ]]; then \
echo " => skipped (unknown linker: pattern ld64-[0-9]* not found in 'ld -v' output)"; \
elif [[ $$LDVER -lt 224 ]]; then \
echo " => skipped (ld version is $$LDVER, only 224 or above supported)"; \
else \