Unverified Commit 337d6df7 authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

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.
parent 4443e4d4
...@@ -91,6 +91,11 @@ BuildApp() { ...@@ -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() { ...@@ -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() { ...@@ -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" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment