[GN] Sanitize environment variables when running ninja from Xcode.

When invoking build script from Xcode, many environment variables
are exported by Xcode based on the project settings. Sanitize the
environment as those variable interact poorly with the hermetic
build (see linked bug for detail of failure more).

BUG=634501

Review-Url: https://codereview.chromium.org/2544803002
Cr-Original-Commit-Position: refs/heads/master@{#435707}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 84aac8fc963ba786889000c40bb5c5a7e95b1b3b
1 file changed
tree: fb0f47e94308b4cefbb1ab217ed0fad0b5b05bbf
  1. tools/