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,13 +152,15 @@ BuildApp() { ...@@ -145,13 +152,15 @@ 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 \
--target="${target_path}" \ ${verbose_flag} \
--snapshot="${build_dir}/snapshot_blob.bin" \ build bundle \
--depfile="${build_dir}/snapshot_blob.bin.d" \ --target="${target_path}" \
--asset-dir="${derived_dir}/flutter_assets" \ --snapshot="${build_dir}/snapshot_blob.bin" \
${precompilation_flag} \ --depfile="${build_dir}/snapshot_blob.bin.d" \
${local_engine_flag} \ --asset-dir="${derived_dir}/flutter_assets" \
${precompilation_flag} \
${local_engine_flag} \
${preview_dart_2_flag} ${preview_dart_2_flag}
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
......
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