diff options
author | jasonwkim@google.com <jasonwkim@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-24 21:55:03 +0000 |
---|---|---|
committer | jasonwkim@google.com <jasonwkim@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-24 21:55:03 +0000 |
commit | b47b5610b3f710d7e33faa49ccb23968a246f7e9 (patch) | |
tree | 329020cfcfe2e19df9e484106aab54739d0bc6f7 /chrome/nacl.gypi | |
parent | 0c0646cdc7cdb69271edeb11f549526f883003d3 (diff) | |
download | chromium_src-b47b5610b3f710d7e33faa49ccb23968a246f7e9.zip chromium_src-b47b5610b3f710d7e33faa49ccb23968a246f7e9.tar.gz chromium_src-b47b5610b3f710d7e33faa49ccb23968a246f7e9.tar.bz2 |
Activate IRT building on ARM for NaCl.
In order for this to be on for real, the PNaCl toolchain still needs to
available
Since NaCl is still turned off by default on ARM, this code should be a no-op
for all other cases.
This also moves the compilation a step forward for ARM.
There is a bootstrap dependency on memset on ARM - so SYSROOT on the
ChromiumOS chroot is required to gain access to libc.
R=bradnelson,robertm
BUG=http://code.google.com/p/chromium/issues/detail?id=61695
BUG=http://code.google.com/p/chromium/issues/detail?id=38909
BUG=http://code.google.com/p/nativeclient/issues/detail?id=135
Review URL: http://codereview.chromium.org/8364019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106982 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/nacl.gypi')
-rw-r--r-- | chrome/nacl.gypi | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/chrome/nacl.gypi b/chrome/nacl.gypi index f5bf28a..1836a27 100644 --- a/chrome/nacl.gypi +++ b/chrome/nacl.gypi @@ -135,6 +135,21 @@ }, ], }], + ['OS!="win" and target_arch=="arm"', { + 'actions': [ + { + 'action_name': 'nacl_irt', + 'message': 'Building NaCl IRT', + 'inputs': [ + '<!@(<(irt_inputs_cmd) --platform=arm)', + ], + 'outputs': ['<(PRODUCT_DIR)/nacl_ir.nexe'], + 'action': [ + '<@(irt_build_cmd)', '--platform', 'arm', + ], + }, + ], + }], ], }, ], @@ -312,16 +327,21 @@ ['target_arch=="x64"', { 'variables': { 'linker_emulation': 'elf_x86_64', + 'bootstrap_extra_lib': '', } }], ['target_arch=="ia32"', { 'variables': { 'linker_emulation': 'elf_i386', + 'bootstrap_extra_lib': '', } }], ['target_arch=="arm"', { 'variables': { 'linker_emulation': 'armelf_linux_eabi', + # ARM requires linking against libc due to ABI dependencies on + # memset + 'bootstrap_extra_lib' : "${SYSROOT}/usr/lib/libc.a", } }], ], @@ -344,6 +364,7 @@ '-z', 'max-page-size=0x1000', '--whole-archive', '<(bootstrap_lib)', '--no-whole-archive', + '<@(bootstrap_extra_lib)', ], } ], |