Chromium Code Reviews| Index: mojo/nacl/BUILD.gn |
| diff --git a/mojo/nacl/BUILD.gn b/mojo/nacl/BUILD.gn |
| index 44e3b3e3d6ef7393b06f205882d49cbd8bce2ecd..f389fa3201744ecc132fe067c31e197a9bda7629 100644 |
| --- a/mojo/nacl/BUILD.gn |
| +++ b/mojo/nacl/BUILD.gn |
| @@ -20,16 +20,30 @@ if (!is_nacl) { |
| data_deps = [ "//nacl_bindings:irt_mojo(//native_client/build/toolchain/nacl:irt_${target_cpu})" ] |
| } |
| - executable("monacl_shell_nonsfi") { |
| - testonly = true |
| - sources = [ |
| - "monacl_shell_nonsfi.cc", |
| - ] |
| - deps = [ |
| - ":irt_mojo_nonsfi", |
| - "//mojo/edk/system", |
| - "//native_client/src/nonsfi/loader:elf_loader", |
| - ] |
| + if (current_cpu == "x86") { |
|
Mark Seaborn
2015/09/09 19:13:14
Can you add a comment to explain the conditional?
Sean Klein
2015/09/09 19:32:33
Done.
|
| + executable("monacl_shell_nonsfi") { |
| + testonly = true |
| + sources = [ |
| + "monacl_shell_nonsfi.cc", |
| + ] |
| + deps = [ |
| + ":irt_mojo_nonsfi", |
| + "//mojo/edk/system", |
| + "//native_client/src/nonsfi/loader:elf_loader", |
| + ] |
| + } |
| + } |
| +} |
| + |
| +group("monacl_shell_nonsfi_x86") { |
| + testonly = true |
| + deps = [] |
| + if ((target_cpu == "x64" || target_cpu == "x86") && is_linux) { |
|
Mark Seaborn
2015/09/09 19:13:14
A similar explanatory comment would be good here:
Sean Klein
2015/09/09 19:32:33
Done.
|
| + # The toolchain is hardcoded as 32-bit clang here -- although it must |
| + # be 32 bit (for nonsfi), it assumes clang. Ideally, the toolchain would |
| + # be defined as the 32 bit variant of whatever is being used (be it clang, |
| + # gcc, or something else). |
| + deps += [ ":monacl_shell_nonsfi(//build/toolchain/linux:clang_x86)" ] |
| } |
| } |
| @@ -104,6 +118,7 @@ group("mojo_nacl_tests") { |
| deps = [ |
| ":mojo_nacl_tests_untrusted(//native_client/build/toolchain/nacl:clang_newlib_${current_cpu})", |
| ":monacl_shell", |
| + ":monacl_shell_nonsfi_x86", |
| ":mojo_pnacl_tests", |
| ] |
| } |