mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Pass verbose flag to Xcode subcommands (#16483)
When flutter builds are run with --verbose, pass the flag through to flutter sub-commands run via xcode_backend.sh.
This commit is contained in:
parent
4443e4d4cf
commit
337d6df73d
@ -91,6 +91,11 @@ BuildApp() {
|
|||||||
|
|
||||||
AssertExists "${target_path}"
|
AssertExists "${target_path}"
|
||||||
|
|
||||||
|
local verbose_flag=""
|
||||||
|
if [[ -n "$VERBOSE_SCRIPT_LOGGING" ]]; then
|
||||||
|
verbose_flag="--verbose"
|
||||||
|
fi
|
||||||
|
|
||||||
local build_dir="${FLUTTER_BUILD_DIR:-build}"
|
local build_dir="${FLUTTER_BUILD_DIR:-build}"
|
||||||
local local_engine_flag=""
|
local local_engine_flag=""
|
||||||
if [[ -n "$LOCAL_ENGINE" ]]; then
|
if [[ -n "$LOCAL_ENGINE" ]]; then
|
||||||
@ -113,7 +118,9 @@ BuildApp() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
StreamOutput " ├─Building Dart code..."
|
StreamOutput " ├─Building Dart code..."
|
||||||
RunCommand "${FLUTTER_ROOT}/bin/flutter" --suppress-analytics build aot \
|
RunCommand "${FLUTTER_ROOT}/bin/flutter" --suppress-analytics \
|
||||||
|
${verbose_flag} \
|
||||||
|
build aot \
|
||||||
--output-dir="${build_dir}/aot" \
|
--output-dir="${build_dir}/aot" \
|
||||||
--target-platform=ios \
|
--target-platform=ios \
|
||||||
--target="${target_path}" \
|
--target="${target_path}" \
|
||||||
@ -145,7 +152,9 @@ BuildApp() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
StreamOutput " ├─Assembling Flutter resources..."
|
StreamOutput " ├─Assembling Flutter resources..."
|
||||||
RunCommand "${FLUTTER_ROOT}/bin/flutter" --suppress-analytics build bundle \
|
RunCommand "${FLUTTER_ROOT}/bin/flutter" --suppress-analytics \
|
||||||
|
${verbose_flag} \
|
||||||
|
build bundle \
|
||||||
--target="${target_path}" \
|
--target="${target_path}" \
|
||||||
--snapshot="${build_dir}/snapshot_blob.bin" \
|
--snapshot="${build_dir}/snapshot_blob.bin" \
|
||||||
--depfile="${build_dir}/snapshot_blob.bin.d" \
|
--depfile="${build_dir}/snapshot_blob.bin.d" \
|
||||||
|
Loading…
Reference in New Issue
Block a user