Index: tools/cr/cr/base/android.py |
diff --git a/tools/cr/cr/base/android.py b/tools/cr/cr/base/android.py |
index 45fdc51fe064d4d071361bebd14c2628d701de0c..752061358c0dfbb7c6eeccd7f9ef4f1b23546e88 100644 |
--- a/tools/cr/cr/base/android.py |
+++ b/tools/cr/cr/base/android.py |
@@ -59,8 +59,10 @@ class AndroidPlatform(cr.Platform): |
if not self._env_ready: |
# See what the env would be without env setup |
before = context.exported |
- # Run env setup and capture/parse it's output |
- envsetup = 'source {CR_ENVSETUP} --target-arch={CR_ENVSETUP_ARCH}' |
+ before['GYP_DEFINES'] = before.get( |
+ 'GYP_DEFINES', '') + ' target_arch={CR_ENVSETUP_ARCH}' |
iancottrell
2014/02/19 09:58:21
This feels like the wrong place to do this.
Is the
Nico
2014/02/19 14:04:06
Yes: envsetup is android-specific, and I'm changin
iancottrell
2014/02/19 14:18:24
I mean that setting the arch for gyp does not need
|
+ # Run env setup and capture/parse its output |
+ envsetup = 'source {CR_ENVSETUP}' |
output = cr.Host.CaptureShell(context, envsetup + ' > /dev/null && env') |
env_setup = cr.Config('envsetup', literal=True, export=True) |
for line in output.split('\n'): |