Description[iOS] Fix build always considered dirty.
Fix build when dSYM generation is enabled and output is a thin binary
by correctly informing gn and ninja of the location where the .dSYM
file is generated.
When defining "dsym_switch" in the toolchain definition, the value of
root_out_dir is not yet known (it is only known later when we know if
the toolchain is the default toolchain or not), so use {{root_out_dir}}
to lazily perform the expansion when the information is known.
When determining whether dSYM generation is enabled in the toolchain
definition, look at "toochain_os" instead of "is_ios" as "is_ios" is
defined based on target_os (i.e. is incorrect in the toolchain).
Use output_dir/output_name instead of using rebase_path() to generate
an output name containing directory information because 1. this is a
hack that output_dir was introduced to fix, 2. link tool and ninja do
not agree about the location of the .dSYM file.
BUG=630901
Committed: https://crrev.com/92754a40e7bd74f5a4b3437d33fa4d90068c01d2
Cr-Commit-Position: refs/heads/master@{#407737}
Patch Set 1 #
Dependent Patchsets: Messages
Total messages: 13 (8 generated)
|