Chromium Code Reviews| Index: src/untrusted/irt/irt.gyp |
| =================================================================== |
| --- src/untrusted/irt/irt.gyp (revision 8104) |
| +++ src/untrusted/irt/irt.gyp (working copy) |
| @@ -46,53 +46,65 @@ |
| 'irt_random.c', |
| ], |
| }, |
| - 'conditions': [ |
| - # NOTE: We do not support untrusted gyp build on arm yet. |
| - ['target_arch!="arm"', { |
| - 'targets': [ |
| - { |
| - 'target_name': 'irt_core_nexe', |
| - 'type': 'none', |
| - 'variables': { |
| - 'nexe_target': 'irt_core', |
| - 'build_glibc': 0, |
| - 'build_newlib': 1, |
| - 'sources': ['<@(irt_sources)', '<@(irt_nonbrowser)'], |
| - 'link_flags': [ |
| - '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', |
| - '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)', |
| - ], |
| - }, |
| - 'dependencies': [ |
| - '<(DEPTH)/native_client/tools.gyp:prep_toolchain', |
| - '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', |
| - ], |
| - }, |
| - { |
| - 'target_name': 'irt_browser_lib', |
| - 'type': 'none', |
| - 'variables': { |
| - 'nlib_target': 'libirt_browser.a', |
| - 'build_glibc': 0, |
| - 'build_newlib': 1, |
| - 'sources': ['<@(irt_sources)', '<@(irt_browser)'], |
| - }, |
| - 'conditions': [ |
| - ['target_arch == "x64" or target_arch == "ia32"', { |
| - 'variables': { |
| - 'link_flags': [ |
| - '-r', |
| - '-nostartfiles', |
| - ], |
| - }, |
| - }], |
| - ], |
| - 'dependencies': [ |
| - '<(DEPTH)/native_client/tools.gyp:prep_toolchain', |
| - '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', |
| - ], |
| - }, |
| + 'targets': [ |
| + { |
| + 'target_name': 'irt_core_nexe', |
| + 'type': 'none', |
| + 'variables': { |
| + 'nexe_target': 'irt_core', |
| + 'build_glibc': 0, |
| + 'build_newlib': 1, |
| + 'sources': ['<@(irt_sources)', '<@(irt_nonbrowser)'], |
| + 'conditions': [ |
| + # See comment in native_client/src/untrusted/irt/nacl.scons |
| + # regarding -Ttext-segment and http://code.google.com/p/nativeclient/issues/detail?id=2691. |
|
Mark Seaborn
2012/03/28 07:21:02
Line too long: please wrap
|
| + ['target_arch!="arm"', |
| + { |
| + 'link_flags': [ |
| + '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', |
| + '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)', |
| + ] |
| + }, { # target_arch == "arm" |
| + 'sources': ['<@(irt_sources)', |
| + 'aeabi_read_tp.S'], |
| + 'cflags': ['--pnacl-allow-translate', |
| + '-arch', 'arm'], |
| + 'asflags': ['-arch', 'arm'], |
| + 'link_flags': [ |
| + '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', |
| + '-Wl,-Ttext=<(NACL_IRT_TEXT_START)', |
| + '--pnacl-allow-native', |
| + '-arch', 'arm', |
| + '-Wt,-mtls-use-call', |
| + # TODO(olonho): rethink |
| + '-L<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm', |
| + ], |
| + }, |
| + ], |
| + ], |
| + }, |
| + 'dependencies': [ |
| + '<(DEPTH)/native_client/tools.gyp:prep_toolchain', |
| + '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', |
| ], |
| - }], |
| + }, |
| + { |
| + 'target_name': 'irt_browser_lib', |
| + 'type': 'none', |
| + 'variables': { |
| + 'nlib_target': 'libirt_browser.a', |
| + 'build_glibc': 0, |
| + 'build_newlib': 1, |
| + 'sources': ['<@(irt_sources)', '<@(irt_browser)'], |
| + 'link_flags': [ |
| + '-r', |
| + '-nostartfiles', |
| + ], |
| + }, |
| + 'dependencies': [ |
| + '<(DEPTH)/native_client/tools.gyp:prep_toolchain', |
| + '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', |
| + ], |
| + }, |
| ], |
| } |