| OLD | NEW |
| 1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/sysroot.gni") | 5 import("//build/config/sysroot.gni") |
| 6 import("//build/config/nacl/config.gni") | 6 import("//build/config/nacl/config.gni") |
| 7 import("//build/toolchain/nacl_toolchain.gni") | 7 import("//build/toolchain/nacl_toolchain.gni") |
| 8 | 8 |
| 9 # Add the toolchain revision as a preprocessor define so that sources are | 9 # Add the toolchain revision as a preprocessor define so that sources are |
| 10 # rebuilt when a toolchain is updated. | 10 # rebuilt when a toolchain is updated. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 ar = toolprefix + "ar" | 36 ar = toolprefix + "ar" |
| 37 ld = cxx | 37 ld = cxx |
| 38 executable_extension = ".pexe.debug" | 38 executable_extension = ".pexe.debug" |
| 39 | 39 |
| 40 finalize = toolprefix + "finalize" | 40 finalize = toolprefix + "finalize" |
| 41 nonfinal_file = | 41 nonfinal_file = |
| 42 "{{root_out_dir}}/{{target_output_name}}${executable_extension}" | 42 "{{root_out_dir}}/{{target_output_name}}${executable_extension}" |
| 43 finalized_file = "{{root_out_dir}}/{{target_output_name}}.pexe" | 43 finalized_file = "{{root_out_dir}}/{{target_output_name}}.pexe" |
| 44 postlink = "$finalize $nonfinal_file -o $finalized_file" | 44 postlink = "$finalize $nonfinal_file -o $finalized_file" |
| 45 link_outputs = [ finalized_file ] | 45 link_outputs = [ finalized_file ] |
| 46 |
| 47 # TODO(smklein): Don't modify symbol_level from the default value once |
| 48 # PNaCl's LLVM version has been updated to use more efficient debug info. |
| 49 # See: https://github.com/domokit/mojo/issues/554 |
| 50 symbol_level = 0 |
| 46 } | 51 } |
| 47 | 52 |
| 48 nacl_toolchain("glibc_x86") { | 53 nacl_toolchain("glibc_x86") { |
| 49 toolchain_package = "nacl_x86_glibc" | 54 toolchain_package = "nacl_x86_glibc" |
| 50 toolchain_revision = nacl_x86_glibc_rev | 55 toolchain_revision = nacl_x86_glibc_rev |
| 51 toolchain_cpu = "x86" | 56 toolchain_cpu = "x86" |
| 52 toolprefix = | 57 toolprefix = |
| 53 rebase_path("${nacl_toolchain_dir}/${toolchain_package}/bin/i686-nacl-", | 58 rebase_path("${nacl_toolchain_dir}/${toolchain_package}/bin/i686-nacl-", |
| 54 root_build_dir) | 59 root_build_dir) |
| 55 is_clang = false | 60 is_clang = false |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 toolchain_tuple = "i686-nacl" | 156 toolchain_tuple = "i686-nacl" |
| 152 } | 157 } |
| 153 | 158 |
| 154 nacl_clang_toolchains("x64") { | 159 nacl_clang_toolchains("x64") { |
| 155 toolchain_tuple = "x86_64-nacl" | 160 toolchain_tuple = "x86_64-nacl" |
| 156 } | 161 } |
| 157 | 162 |
| 158 nacl_clang_toolchains("arm") { | 163 nacl_clang_toolchains("arm") { |
| 159 toolchain_tuple = "arm-nacl" | 164 toolchain_tuple = "arm-nacl" |
| 160 } | 165 } |
| OLD | NEW |