[ios] Set `target_environment` gn variable in web_view build script
In preparation of supporting arm64 simulator build (for Apple Silicon macs), we need to decouple the fact that a build is a simulator build from the `target_cpu`. This was done by introducing a `target_environment` variable that can be set by the user (the default value is set using the same heuristic based on value of `target_cpu` if unset). Change the ios/web_view build script to explicitly set the variable. Also change gn_args from a string to a list of string and join them when creating the command-line to make the code easier to read. Bug: 1138425 Change-Id: I540ad628921dba9cd37a7599b68fd1d27bf59cda Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2489866 Commit-Queue: Sylvain Defresne <sdefresne@chromium.org> Commit-Queue: Eugene But <eugenebut@chromium.org> Auto-Submit: Sylvain Defresne <sdefresne@chromium.org> Reviewed-by:Eugene But <eugenebut@chromium.org> Cr-Commit-Position: refs/heads/master@{#819417}
Showing
Please register or sign in to comment