[flutter_tools] support --split-debug-info option in android builds (#49650)
This commit is contained in:
@@ -37,6 +37,12 @@ if [[ -n "$FLUTTER_ENGINE" ]]; then
|
||||
flutter_engine_flag="--local-engine-src-path=${FLUTTER_ENGINE}"
|
||||
fi
|
||||
|
||||
# Provide location to split debug info
|
||||
split_debug_info_option=""
|
||||
if [[ -n "$SPLIT_DEBUG_INFO" ]]; then
|
||||
split_debug_info_option="-dSplitDebugInfo=${SPLIT_DEBUG_INFO}"
|
||||
fi
|
||||
|
||||
# Set the build mode
|
||||
build_mode="$(echo "${FLUTTER_BUILD_MODE:-${CONFIGURATION}}" | tr "[:upper:]" "[:lower:]")"
|
||||
|
||||
@@ -75,7 +81,8 @@ RunCommand "${FLUTTER_ROOT}/bin/flutter" --suppress-analytics \
|
||||
-dTargetPlatform=darwin-x64 \
|
||||
-dTargetFile="${target_path}" \
|
||||
-dBuildMode="${build_mode}" \
|
||||
-dFontSubset="${icon_tree_shaker_flag}" \
|
||||
"${split_debug_info_option}" \
|
||||
-dFontSubset="${icon_tree_shaker_flag}" \
|
||||
--build-inputs="${build_inputs_path}" \
|
||||
--build-outputs="${build_outputs_path}" \
|
||||
--output="${ephemeral_dir}" \
|
||||
|
||||
Reference in New Issue
Block a user