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

Unified Diff: build/common.gypi

Issue 295044: Changing target_arch selection in nacl to match chrome.... (Closed) Base URL: http://nativeclient.googlecode.com/svn/trunk/src/native_client/
Patch Set: Created 11 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
===================================================================
--- build/common.gypi (revision 889)
+++ build/common.gypi (working copy)
@@ -50,8 +50,24 @@
# but that doesn't work as we'd like.
'msvs_debug_link_incremental%': '2',
+ # Doing this in a sub-dict so that it can be referred to below.
# The architecture that we're building for (x86, arm).
- 'target_arch%': 'ia32',
+ 'variables': {
+ # Compute the architecture that we're building for. Default to the
+ # architecture that we're building on.
+ 'conditions': [
+ [ 'OS=="linux"', {
+ # This handles the Linux platforms we generally deal with. Anything
+ # else gets passed through, which probably won't work very well; such
+ # hosts should pass an explicit target_arch to gyp.
+ 'target_arch%':
+ '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/arm.*/arm/")'
gregoryd 2009/10/21 20:15:07 Will it still work with GYP_DEFINES? I think it's
bradn 2009/10/21 20:23:50 Yes it will still work with GYP_DEFINES.
+ }, { # OS!="linux"
+ 'target_arch%': 'ia32',
+ }],
+ ],
+ },
+ 'target_arch%': '<(target_arch)',
gregoryd 2009/10/21 20:15:07 gyp question: when <(target_arch) is referred belo
bradn 2009/10/21 20:23:50 This will use the one from the variables section a
'linux2%': 0,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698