Use libc++ when building with Clang on Mac
[WebKit.git] / Source / ThirdParty / ANGLE / Configurations / Base.xcconfig
1 #include "CompilerVersion.xcconfig"
2
3 DEAD_CODE_STRIPPING = YES;
4 DEBUG_INFORMATION_FORMAT = dwarf;
5 GCC_C_LANGUAGE_STANDARD = gnu99;
6 GCC_DEBUGGING_SYMBOLS = default;
7 GCC_ENABLE_CPP_EXCEPTIONS = NO;
8 GCC_ENABLE_CPP_RTTI = NO;
9 GCC_ENABLE_OBJC_EXCEPTIONS = YES;
10 GCC_ENABLE_OBJC_GC = supported;
11 GCC_ENABLE_SYMBOL_SEPARATION = NO;
12 GCC_FAST_OBJC_DISPATCH = YES;
13 GCC_MODEL_TUNING = G5;
14 GCC_OBJC_CALL_CXX_CDTORS = YES;
15 GCC_OPTIMIZATION_LEVEL = s;
16 GCC_PRECOMPILE_PREFIX_HEADER = NO;
17 GCC_INLINES_ARE_PRIVATE_EXTERN = YES;
18 GCC_SYMBOLS_PRIVATE_EXTERN = NO;
19 GCC_THREADSAFE_STATICS = NO;
20 GCC_TREAT_WARNINGS_AS_ERRORS = YES;
21 GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO;
22 GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
23 LINKER_DISPLAYS_MANGLED_NAMES = YES;
24 PREBINDING = NO;
25 STRIP_INSTALLED_PRODUCT = NO;
26
27 CLANG_CXX_LIBRARY = $(CLANG_CXX_LIBRARY_$(TARGET_MAC_OS_X_VERSION_MAJOR));
28 CLANG_CXX_LIBRARY_1070 = libc++;
29 CLANG_CXX_LIBRARY_1080 = libc++;
30 CLANG_CXX_LIBRARY_1090 = libc++;
31
32 REAL_PLATFORM_NAME = $(REAL_PLATFORM_NAME_$(PLATFORM_NAME));
33 REAL_PLATFORM_NAME_ = $(REAL_PLATFORM_NAME_macosx);
34 REAL_PLATFORM_NAME_iphoneos = iphoneos;
35 REAL_PLATFORM_NAME_iphonesimulator = iphonesimulator;
36 REAL_PLATFORM_NAME_macosx = macosx;
37
38 TARGET_MAC_OS_X_VERSION_MAJOR = $(MAC_OS_X_VERSION_MAJOR);
39
40 // If the target Mac OS X version does not match the current Mac OS X version then we'll want to build using the target version's SDK.
41 SDKROOT = $(SDKROOT_$(MAC_OS_X_VERSION_MAJOR)_$(TARGET_MAC_OS_X_VERSION_MAJOR));
42 SDKROOT_1060_1050 = macosx10.5;
43 SDKROOT_1070_1050 = macosx10.5;
44 SDKROOT_1080_1050 = macosx10.5;
45 SDKROOT_1090_1050 = macosx10.5;
46 SDKROOT_1070_1060 = macosx10.6;
47 SDKROOT_1080_1060 = macosx10.6;
48 SDKROOT_1090_1060 = macosx10.6;
49 SDKROOT_1080_1070 = macosx10.7;
50 SDKROOT_1090_1070 = macosx10.7;
51 SDKROOT_1090_1080 = macosx10.8;