X-Git-Url: https://git.saurik.com/apple/libpthread.git/blobdiff_plain/f1a1da6cf65a9d0e6858678f6c259025cf5d27fd..24d1ef94896ee9beed74527cef92faa6446d7bd3:/xcodescripts/kext.xcconfig?ds=sidebyside diff --git a/xcodescripts/kext.xcconfig b/xcodescripts/kext.xcconfig index dd41529..a59dff9 100644 --- a/xcodescripts/kext.xcconfig +++ b/xcodescripts/kext.xcconfig @@ -1,7 +1,15 @@ // pthread kext build options +BUILD_VARIANTS = normal development +BUILD_VARIANTS[sdk=macosx*] = normal + +PTHREAD_VARIANT_ = $(CURRENT_VARIANT) +PTHREAD_VARIANT_YES = development +PTHREAD_VARIANT = $(PTHREAD_VARIANT_$(DEBUG)) + +VALID_ARCHS[sdk=macosx*] = $(NATIVE_ARCH_ACTUAL) ARCHS = $(ARCHS_STANDARD_32_64_BIT) -SUPPORTED_PLATFORMS = macosx iphoneos +SUPPORTED_PLATFORMS = macosx iphoneos appletvos watchos DYLIB_CURRENT_VERSION = $(RC_ProjectSourceVersion) INSTALL_PATH = $(SYSTEM_LIBRARY_DIR)/Extensions MODULE_NAME = com.apple.kec.pthread @@ -19,8 +27,18 @@ GCC_C_LANGUAGE_STANDARD = gnu99 CLANG_CXX_LANGUAGE_STANDARD = gnu++0x CLANG_CXX_LIBRARY = libc++ GCC_PRECOMPILE_PREFIX_HEADER = YES -GCC_PREPROCESSOR_DEFINITIONS = XNU_KERNEL_PRIVATE MACH_KERNEL_PRIVATE ABSOLUTETIME_SCALAR_TYPE NEEDS_SCHED_CALL_T -//GCC_OPTIMIZATION_LEVEL = 0 + +GCC_OPTIMIZATION_LEVEL_normal = s +GCC_OPTIMIZATION_LEVEL_development = 0 +GCC_OPTIMIZATION_LEVEL = $(GCC_OPTIMIZATION_LEVEL_$(PTHREAD_VARIANT)) + +LLVM_LTO_normal = YES +LLVM_LTO_development = NO +LLVM_LTO = $(LLVM_LTO_$(PTHREAD_VARIANT)) + +GCC_PREPROCESSOR_DEFINITIONS_kext = XNU_KERNEL_PRIVATE MACH_KERNEL_PRIVATE ABSOLUTETIME_SCALAR_TYPE NEEDS_SCHED_CALL_T +GCC_PREPROCESSOR_DEFINITIONS_kext_development = MACH_ASSERT DEBUG +GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS_kext) $(GCC_PREPROCESSOR_DEFINITIONS_kext_$(PTHREAD_VARIANT)) GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = YES