4 ifeq ($(DEVELOPER_DIR),)
5 DEVELOPER_DIR := $(shell xcode-select -p)
8 include $(DEVELOPER_DIR)/AppleInternal/Makefiles/darwintest/Makefile.common
12 TARGETS += bsdthread_set_self
14 #TARGETS += cond_hang3
15 #TARGETS += cond_stress
17 TARGETS += custom_stack
21 TARGETS += main_stack_custom
25 TARGETS += once_cancel
26 TARGETS += pthread_attr_setstacksize
27 TARGETS += pthread_bulk_create
28 TARGETS += pthread_cancel
29 TARGETS += pthread_cwd
30 TARGETS += pthread_exit
31 TARGETS += pthread_introspection
32 TARGETS += pthread_setspecific
33 TARGETS += pthread_threadid_np
35 #TARGETS += rwlock-22244050
36 #TARGETS += rwlock-signal
39 #TARGETS += wq_block_handoff
40 #TARGETS += wq_event_manager
42 #TARGETS += wq_kevent_stress
43 TARGETS += add_timer_termination
47 OTHER_CFLAGS := -DDARWINTEST -Weverything \
48 -Wno-vla -Wno-bad-function-cast -Wno-missing-noreturn \
49 -Wno-missing-field-initializers -Wno-format-pedantic \
50 -Wno-gnu-folding-constant
51 OTHER_LDFLAGS := -ldarwintest_utils
53 #TARGETS += main_stack_legacy // Disabled by default due to linker warnings
54 #main_stack_legacy: OTHER_LDFLAGS += -Wl,-stack_addr,0xc1000000 -Wl,-stack_size,0x0f00000
55 #main_stack_legacy: OTHER_CFLAGS += -DSTACKSIZE=0x0f00000
56 #main_stack_legacy: ARCH_FLAGS = -arch i386
57 #main_stack_legacy: DEPLOYMENT_TARGET_FLAGS = -mmacosx-version-min=10.7
59 main_stack_custom: OTHER_LDFLAGS += -Wl,-stack_size,0x14000
60 main_stack_custom: OTHER_CFLAGS += -DSTACKSIZE=0x14000
62 bsdthread_set_self: OTHER_CFLAGS += -D_DARWIN_FEATURE_CLOCK_GETTIME
64 include $(DEVELOPER_DIR)/AppleInternal/Makefiles/darwintest/Makefile.targets