diff options
author | Dan Willemsen <dwillemsen@google.com> | 2015-11-17 15:19:46 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2015-11-17 18:09:57 -0800 |
commit | 322a0a6b59dfe5d059b7075cd033dc0bcb49dc13 (patch) | |
tree | ad310d354966511ee832ef6ac372687d26fc8008 /cc/clang.go | |
parent | 5602b5888e7c7eb523bd3bc71eadac7324816bce (diff) | |
download | build_soong-322a0a6b59dfe5d059b7075cd033dc0bcb49dc13.tar.gz build_soong-322a0a6b59dfe5d059b7075cd033dc0bcb49dc13.tar.bz2 build_soong-322a0a6b59dfe5d059b7075cd033dc0bcb49dc13.zip |
Fix and optimize relPwd in cc
We cannot use the PWD trick for any compile on Darwin, since /proc
doesn't exist. So instead of checking for darwin host modules, just
check runtime.GOOS.
And since this isn't a per-module decision, don't pass it along as a
variable to every build command, but make it a global variable.
Change-Id: Iea8609f49a9d316c58aed527f62d1986c970eaac
Diffstat (limited to 'cc/clang.go')
0 files changed, 0 insertions, 0 deletions