update.py: Apply patches on non-Windows, only call SetEnv.cmd on Windows.

Also strip the resulting clang binary on non-Windows.

This gets update.py pretty close to feature-complete on OS X
(on Linux, it still needs to download gcc and do the android asan
stuff), except for compiler-rt: update.sh always builds it out-of-tree,
while update.py builds it in-tree (to get the 64-bit runtime) and
out-of-tree (to get the 32-bit runtime). So that still needs to be
rectified somehow.

We currently only need (small) downstream patches on non-Win,
so only implement local patching there. I noodled around a bit with
applying patches via `git apply`, but while that works fine in small
test directories it apparently gets confused if there's a git checkout
further up (like the chromium .git dir being in a parent directory of
the llvm code repo) – so there's no easy way to apply patches on
Windows anyways.

BUG=494442
NOTRY=true
NOPRESUBMIT=true

Review URL: https://codereview.chromium.org/1178273006

Cr-Commit-Position: refs/heads/master@{#334498}
2 files changed