X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/197008ea33f135c7c4f94a67a2f75a9df7b7771d..39a8cd101b922f08058746122efff58c14b57605:/unit-tests/test-cases/big-stack/Makefile diff --git a/unit-tests/test-cases/big-stack/Makefile b/unit-tests/test-cases/big-stack/Makefile index cc85b85..b6f9489 100644 --- a/unit-tests/test-cases/big-stack/Makefile +++ b/unit-tests/test-cases/big-stack/Makefile @@ -1,5 +1,5 @@ ## -# Copyright (c) 2006 Apple Computer, Inc. All rights reserved. +# Copyright (c) 2006-2008 Apple Inc. All rights reserved. # # @APPLE_LICENSE_HEADER_START@ # @@ -23,11 +23,28 @@ TESTROOT = ../.. include ${TESTROOT}/include/common.makefile -run: all +# rosetta does not support very large stack sizes +STACK_SIZE = 0x83000000 +ifeq "ppc" "$(ARCH)" + MACHINE = $(shell arch) + ifeq "i386" "$(MACHINE)" + STACK_SIZE = 0x02100000 + endif +endif + + +ifeq "armv6" "$(ARCH)" + STACK_SIZE = 0x20000000 +endif + + +all-check: all check + +check: ${TESTROOT}/bin/exit-zero-pass.pl "big stack" "big stack failed" ./main all: - ${CC} ${CCFLAGS} -I${TESTROOT}/include -o main main.c -Wl,-w -Wl,-stack_size -Wl,0x83000000 + ${CC} ${CCFLAGS} -I${TESTROOT}/include -o main main.c -Wl,-w -Wl,-stack_size -Wl,${STACK_SIZE} -DSTACK_SIZE=${STACK_SIZE} clean: ${RM} ${RMFLAGS} main