Description[iOS/GN] Fix generation of .dSYM for fat binary builds.
When creating fat binaries, the generation of the .dSYM file need to
use the fat binary and not the intermediate binaries. So for a fat
build, //build/config/mac:strip_all is an empty configuration and the
linker tools do not pass the flag requesting generation of the .dSYM
file to linker_driver.py, instead the flags are passed when "lipo" is
invoked.
Fix //build/toolchain/mac/linker_driver.py to look for both "-o" and
"-output" when looking for the linker output to allow wrapping "lipo"
in addition to the compiler linker (as "lipo" only accept "-output"
flag to specify the output file).
Always add //build/config/mac:strip_all to the dependencies of all
linkable targets on iOS (as is done on Mac) and fix cronet.
BUG=593582
Committed: https://crrev.com/6e714433f6749c3664ca816d1c64a488828ef75d
Cr-Commit-Position: refs/heads/master@{#406253}
Patch Set 1 #
Total comments: 6
Patch Set 2 : Address comments. #Patch Set 3 : Rebase and add support for save_unstripped_output. #
Messages
Total messages: 27 (19 generated)
|