]>
Commit | Line | Data |
---|---|---|
1 | #include "<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig" | |
2 | ||
3 | // NO means only libSystem.B_asan.dylib will be ASanified. | |
4 | // YES means even the normal variant, libSystem.B.dylib, will be ASanified. | |
5 | ASAN_IN_NORMAL_VARIANT = NO | |
6 | ||
7 | ASAN_CFLAGS_ = | |
8 | ASAN_CFLAGS_YES = -DCURRENT_VARIANT_asan=1 | |
9 | ASAN_LDFLAGS_ = | |
10 | SHARED_ASAN_LDFLAGS = -L $(SDKROOT)/usr/local/lib/sanitizers -Xlinker -not_for_dyld_shared_cache -rpath /usr/local/lib/sanitizers/ | |
11 | ASAN_LDFLAGS_YES[sdk=macosx*] = $(SHARED_ASAN_LDFLAGS) -Xlinker -upward-lclang_rt.asan_osx_dynamic | |
12 | ASAN_LDFLAGS_YES[sdk=iphoneos*] = $(SHARED_ASAN_LDFLAGS) -Xlinker -upward-lclang_rt.asan_ios_dynamic | |
13 | ASAN_LDFLAGS_YES[sdk=watchos*] = $(SHARED_ASAN_LDFLAGS) -Xlinker -upward-lclang_rt.asan_watchos_dynamic | |
14 | ASAN_LDFLAGS_YES[sdk=appletvos*] = $(SHARED_ASAN_LDFLAGS) -Xlinker -upward-lclang_rt.asan_tvos_dynamic | |
15 | ASAN_LDFLAGS_YES[sdk=bridgeos*] = $(SHARED_ASAN_LDFLAGS) -Xlinker -upward-lclang_rt.asan_bridgeos_dynamic | |
16 | ASAN_IN_NORMAL_VARIANT_CFLAGS = $(ASAN_CFLAGS_$(ASAN_IN_NORMAL_VARIANT)) | |
17 | ASAN_IN_NORMAL_VARIANT_LDFLAGS = $(ASAN_LDFLAGS_$(ASAN_IN_NORMAL_VARIANT)) | |
18 | ||
19 | BUILD_VARIANTS = normal debug asan | |
20 | SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator | |
21 | INSTALL_PATH = /usr/lib | |
22 | DYLIB_CURRENT_VERSION = $(CURRENT_VERSION_STRING_$(RC_XBS)) | |
23 | ORDER_FILE = $(SDKROOT)/$(APPLE_INTERNAL_DIR)/OrderFiles/libSystem.order | |
24 | ORDER_FILE[sdk=iphonesimulator*] = | |
25 | OTHER_CFLAGS = -include $(BUILT_PRODUCTS_DIR)/config.$(CURRENT_ARCH).$(CURRENT_VARIANT).h -DCURRENT_VARIANT_$(CURRENT_VARIANT)=1 $(ASAN_IN_NORMAL_VARIANT_CFLAGS) | |
26 | OTHER_LDFLAGS = -Wl,-search_paths_first -nodefaultlibs @$(BUILT_PRODUCTS_DIR)/linker_arguments.$(CURRENT_ARCH).$(CURRENT_VARIANT).txt $(ASAN_IN_NORMAL_VARIANT_LDFLAGS) | |
27 | OTHER_LDFLAGS_asan = $(ASAN_LDFLAGS_YES) | |
28 | LD_GENERATE_MAP_FILE = YES | |
29 | EXECUTABLE_PREFIX = lib | |
30 | PRIVATE_HEADERS_FOLDER_PATH = /usr/local/include/os | |
31 | LIBRARY_SEARCH_PATHS = $(SDKROOT)/usr/lib/system $(SDKROOT)/usr/local/lib/system | |
32 | GCC_NO_COMMON_BLOCKS = YES | |
33 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES | |
34 | GCC_WARN_ABOUT_RETURN_TYPE = YES | |
35 | GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES | |
36 | GCC_TREAT_WARNINGS_AS_ERRORS = YES | |
37 | GCC_WARN_UNUSED_VARIABLE = YES | |
38 | CURRENT_VERSION_STRING_ = 159 | |
39 | CURRENT_VERSION_STRING_YES = $(CURRENT_PROJECT_VERSION) | |
40 | INFOPLIST_INSTALL_PATH = Versions/B/Resources | |
41 | INFOPLIST_INSTALL_PATH[sdk=iphoneos*] = | |
42 | INFOPLIST_INSTALL_PATH[sdk=*simulator*] = | |
43 | INFOPLIST_INSTALL_PATH[sdk=watchos*] = | |
44 | INFOPLIST_OUTPUT_FORMAT = binary | |
45 | INFOPLIST_OUTPUT_FORMAT[sdk=macosx*] = xml | |
46 | APPLY_RULES_IN_COPY_FILES = YES | |
47 | PLIST_FILE_OUTPUT_FORMAT = binary | |
48 | PLIST_FILE_OUTPUT_FORMAT[sdk=macosx*] = xml | |
49 | ||
50 | // override presence of $(EXECUTABLE_VARIANT_SUFFIX) in the default EXECUTABLE_NAME rdar://26234727 | |
51 | DYLIB_INSTALL_NAME_EXECUTABLE_NAME = $(EXECUTABLE_PREFIX)$(PRODUCT_NAME)$(EXECUTABLE_SUFFIX) | |
52 | DYLIB_INSTALL_NAME_EXECUTABLE_PATH = $(DYLIB_INSTALL_NAME_EXECUTABLE_NAME) | |
53 | LD_DYLIB_INSTALL_NAME = $(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(DYLIB_INSTALL_NAME_EXECUTABLE_PATH) | |
54 | ||
55 | IS_ZIPPERED = YES |