Merge pull request #476 from btj/trunk

Guard unwind test against old OS X versions
master
Gabriel Scherer 2016-02-23 09:29:24 -05:00
commit 76d0fbe4fc
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
# The -keep_dwarf_unwind option of ld was introduced in ld version 224.1.
# (The last released version where it is not supported is version 136.)
default:
@printf " ... testing 'unwind_test':"
@if [ $(SYSTEM) = macosx ] && ! $(BYTECODE_ONLY); then \
@if [ $(SYSTEM) = macosx ] && ! $(BYTECODE_ONLY) && [[ `ld -v 2>&1` =~ ld64-([0-9]*) ]] && [[ 224 -le $${BASH_REMATCH[1]} ]]; then \
$(MAKE) native_macosx_tests; \
else \
echo " => skipped"; \