Commit | Line | Data |
---|---|---|
974e3884 A |
1 | PROJECT := Libc |
2 | TEST_DIR := tests/ | |
3 | ||
4 | ifeq ($(DEVELOPER_DIR),) | |
5 | DEVELOPER_DIR := $(shell xcode-select -p) | |
6 | endif | |
7 | ||
8 | include $(DEVELOPER_DIR)/AppleInternal/Makefiles/darwintest/Makefile.common | |
9 | ||
b061a43b A |
10 | ifeq ($(PLATFORM),BridgeOS) |
11 | EXCLUDED_SOURCES += locale.c | |
12 | endif | |
13 | ||
14 | WARNING_CFLAGS := -Weverything \ | |
15 | -Wno-vla -Wno-missing-field-initializers -Wno-padded \ | |
16 | -Wno-gnu-flexible-array-initializer -Wno-gnu-empty-initializer \ | |
17 | -Wno-partial-availability -Wno-used-but-marked-unused \ | |
18 | -Wno-reserved-id-macro -fmacro-backtrace-limit=0 \ | |
19 | -Wno-c++98-compat | |
20 | OTHER_CFLAGS := -DDARWINTEST --std=gnu11 $(WARNING_CFLAGS) | |
974e3884 | 21 | OTHER_LDFLAGS := -ldarwintest_utils |
b061a43b | 22 | ASAN_DYLIB_PATH := /usr/local/lib/sanitizers/ |
974e3884 A |
23 | |
24 | nxheap: OTHER_CFLAGS += -Wno-cast-align | |
25 | strlcat: OTHER_CFLAGS += -Wno-pointer-arith | |
26 | psort: OTHER_CFLAGS += -Wno-cast-qual -Wno-sign-conversion | |
27 | net: OTHER_CFLAGS += -Wno-sign-conversion -Wno-cast-align -Wno-incompatible-pointer-types-discards-qualifiers -Wno-sign-compare | |
b061a43b A |
28 | printf: OTHER_CFLAGS += -Wno-format-nonliteral |
29 | strlcpy: OTHER_CFLAGS += -D_FORTIFY_SOURCE=0 | |
30 | realpath_edge: OTHER_CFLAGS += -fsanitize=address -I../fbsdcompat | |
31 | realpath_edge: OTHER_LDFLAGS += -Wl,-rpath -Wl,$(ASAN_DYLIB_PATH) | |
32 | qsort freebsd_qsort: OTHER_CFLAGS += -Wno-unused-function | |
33 | ifeq ($(PLATFORM),MacOSX) | |
34 | qsort_perf: OTHER_CFLAGS += -Wno-sign-compare -Wno-sign-conversion -Wno-cast-align -Wno-shorten-64-to-32 | |
35 | else | |
36 | EXCLUDED_SOURCES += qsort_perf.c | |
37 | endif | |
6dccf0e0 | 38 | os_variant: OTHER_CFLAGS += -DOS_CRASH_ENABLE_EXPERIMENTAL_LIBTRACE |
974e3884 A |
39 | |
40 | include $(DEVELOPER_DIR)/AppleInternal/Makefiles/darwintest/Makefile.targets | |
b061a43b | 41 |