diff options
author | jvoung@chromium.org <jvoung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-02 18:51:38 +0000 |
---|---|---|
committer | jvoung@chromium.org <jvoung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-02 18:51:38 +0000 |
commit | 498886f693b1255bff6df390245ef02720c11b96 (patch) | |
tree | ae0ca934486fc01b51c8af15f4d8d46c41e9dfba /ppapi/native_client/native_client.gyp | |
parent | 752375d2ce7605e273aa8dfc18cb9c4e672072b0 (diff) | |
download | chromium_src-498886f693b1255bff6df390245ef02720c11b96.zip chromium_src-498886f693b1255bff6df390245ef02720c11b96.tar.gz chromium_src-498886f693b1255bff6df390245ef02720c11b96.tar.bz2 |
Only build one NaCl IRT for x86 (either 32-bit or 64-bit) on non Windows.
This saves some space on chromeos, where the ebuild file does
"doins ${FROM}/nacl_irt_*.nexe". The linux installers also
do globbing, so could help with the linux install size.
For Windows, we need both because the chrome is still 32-bit
only, while NaCl can be 32-bit or 64-bit. We can change
this once chrome is 64-bit on 64-bit systems.
I thought about changing the defaults in untrusted.gypi
to be more specific but did not. I assume that both flavors
are needed to build libraries for the SDK?
BUG=160988
Review URL: https://chromiumcodereview.appspot.com/12387020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185750 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/native_client/native_client.gyp')
-rw-r--r-- | ppapi/native_client/native_client.gyp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ppapi/native_client/native_client.gyp b/ppapi/native_client/native_client.gyp index b7b3c8f..ea5133f 100644 --- a/ppapi/native_client/native_client.gyp +++ b/ppapi/native_client/native_client.gyp @@ -146,6 +146,20 @@ ], }, ], + # untrusted.gypi and build_nexe.py currently build + # both x86-32 and x86-64 whenever target_arch is some + # flavor of x86. However, on non-windows platforms + # we only need one architecture. + ['OS!="win" and target_arch=="ia32"', + { + 'enable_x86_64': 0 + } + ], + ['OS!="win" and target_arch=="x64"', + { + 'enable_x86_32': 0 + } + ] ], 'sources': [ ], |