Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: tools/cr/cr/base/android.py

Issue 171903002: android envsetup: Stop honoring --target-arch parameter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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'):
« no previous file with comments | « build/gyp_chromium ('k') | tools/cr/cr/base/arch.py » ('j') | tools/cr/cr/base/arch.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698