Make minimum SDK version configurable
In some use cases it's necessary to support older systems. Currently minimum SDK versions are set to reasonable defaults, but there is no easy way to override them. Introduce a new set of command-line flags to set different minimum SDK versions, similar to how it's possible to override the default target SDK version: --min-macos-sdk --min-ios-sdk --min-tvos-sdk --min-watchos-sdk Also, output the selected minimum SDK version along with the target one on the configuration readout. It makes it easier to confirm that the configuration is the one you expect.
This commit is contained in:
parent
7df037b599
commit
d577228bbd
|
@ -53,8 +53,13 @@ echo_help()
|
||||||
echo " -h, --help Print help (this message)"
|
echo " -h, --help Print help (this message)"
|
||||||
echo " --macos-sdk=SDKVERSION Override macOS SDK version"
|
echo " --macos-sdk=SDKVERSION Override macOS SDK version"
|
||||||
echo " --ios-sdk=SDKVERSION Override iOS SDK version"
|
echo " --ios-sdk=SDKVERSION Override iOS SDK version"
|
||||||
echo " --noparallel Disable running make with parallel jobs (make -j)"
|
|
||||||
echo " --tvos-sdk=SDKVERSION Override tvOS SDK version"
|
echo " --tvos-sdk=SDKVERSION Override tvOS SDK version"
|
||||||
|
echo " --watchos-sdk=SDKVERSION Override watchOS SDK version"
|
||||||
|
echo " --min-macos-sdk=SDKVERSION Set minimum macOS SDK version (default: $MACOS_MIN_SDK_VERSION)"
|
||||||
|
echo " --min-ios-sdk=SDKVERSION Set minimum iOS SDK version (default: $IOS_MIN_SDK_VERSION)"
|
||||||
|
echo " --min-tvos-sdk=SDKVERSION Set minimum tvOS SDK version (default: $TVOS_MIN_SDK_VERSION)"
|
||||||
|
echo " --min-watchos-sdk=SDKVERSION Set minimum watchOS SDK version (default: $WATCHOS_MIN_SDK_VERSION)"
|
||||||
|
echo " --noparallel Disable running make with parallel jobs (make -j)"
|
||||||
echo " --disable-bitcode Disable embedding Bitcode"
|
echo " --disable-bitcode Disable embedding Bitcode"
|
||||||
echo " -v, --verbose Enable verbose logging"
|
echo " -v, --verbose Enable verbose logging"
|
||||||
echo " --verbose-on-error Dump last 500 lines from log file if an error occurs (for Travis builds)"
|
echo " --verbose-on-error Dump last 500 lines from log file if an error occurs (for Travis builds)"
|
||||||
|
@ -265,6 +270,22 @@ case $i in
|
||||||
WATCHOS_SDKVERSION="${i#*=}"
|
WATCHOS_SDKVERSION="${i#*=}"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--min-macos-sdk=*)
|
||||||
|
MACOS_MIN_SDK_VERSION="${i#*=}"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
--min-ios-sdk=*)
|
||||||
|
IOS_MIN_SDK_VERSION="${i#*=}"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
--min-tvos-sdk=*)
|
||||||
|
TVOS_MIN_SDK_VERSION="${i#*=}"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
--min-watchos-sdk=*)
|
||||||
|
WATCHOS_MIN_SDK_VERSION="${i#*=}"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
-v|--verbose)
|
-v|--verbose)
|
||||||
LOG_VERBOSE="verbose"
|
LOG_VERBOSE="verbose"
|
||||||
;;
|
;;
|
||||||
|
@ -413,10 +434,10 @@ if [ "${BUILD_TYPE}" == "archs" ]; then
|
||||||
else
|
else
|
||||||
echo " Targets: ${TARGETS}"
|
echo " Targets: ${TARGETS}"
|
||||||
fi
|
fi
|
||||||
echo " macOS SDK: ${MACOS_SDKVERSION}"
|
echo " macOS SDK: ${MACOS_SDKVERSION} (min ${MACOS_MIN_SDK_VERSION})"
|
||||||
echo " iOS SDK: ${IOS_SDKVERSION}"
|
echo " iOS SDK: ${IOS_SDKVERSION} (min ${IOS_MIN_SDK_VERSION})"
|
||||||
echo " tvOS SDK: ${TVOS_SDKVERSION}"
|
echo " tvOS SDK: ${TVOS_SDKVERSION} (min ${TVOS_MIN_SDK_VERSION})"
|
||||||
echo " watchOS SDK: ${WATCHOS_SDKVERSION}"
|
echo " watchOS SDK: ${WATCHOS_SDKVERSION} (min ${WATCHOS_MIN_SDK_VERSION})"
|
||||||
if [ "${CONFIG_DISABLE_BITCODE}" == "true" ]; then
|
if [ "${CONFIG_DISABLE_BITCODE}" == "true" ]; then
|
||||||
echo " Bitcode embedding disabled"
|
echo " Bitcode embedding disabled"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue