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

Unified Diff: scripts/slave/recipe_modules/chromium/config.py

Issue 59233015: Make gyp target_arch setting native to chromium/config.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 1 month 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: scripts/slave/recipe_modules/chromium/config.py
diff --git a/scripts/slave/recipe_modules/chromium/config.py b/scripts/slave/recipe_modules/chromium/config.py
index 5b2cb84d40bd8221df73aa6cc426c93dc4cf2ce2..3947333890a27a9dc8f1e0b19e9df420ffed0a7d 100644
--- a/scripts/slave/recipe_modules/chromium/config.py
+++ b/scripts/slave/recipe_modules/chromium/config.py
@@ -119,10 +119,18 @@ def BASE(c):
# Windows requires 64-bit builds to be in <dir>_x64.
c.build_config_fs = c.BUILD_CONFIG + '_x64'
c.gyp_env.GYP_MSVS_VERSION = '2012'
- c.gyp_env.GYP_DEFINES['target_arch'] = 'x64'
navabi 2013/11/08 19:01:15 Was this needed for c.HOST_PLATFORM == win and c.T
iannucci 2013/11/08 19:49:57 It was just a temporary holdover until we did the
else:
c.gyp_env.GYP_MSVS_VERSION = '2010'
+ gyp_arch = {
+ ('intel', 32) : 'ia32',
+ ('intel', 64) : 'x64',
+ ('arm', 32) : 'arm',
+ ('mips', 32) : 'mips',
+ }.get((c.TARGET_ARCH, c.TARGET_BITS))
+ if gyp_arch:
+ c.gyp_env.GYP_DEFINES['target_arch'] = gyp_arch
+
if c.BUILD_CONFIG == 'Release':
static_library(c, final=False)
elif c.BUILD_CONFIG == 'Debug':

Powered by Google App Engine
This is Rietveld 408576698