Chromium Code Reviews| 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 | |
|
viettrungluu
2015/11/20 21:41:02
Could you file a bug for this, and add it to this
Sean Klein
2015/11/20 22:05:02
Done.
| |
| 48 # PNaCl's LLVM version has been updated to use more efficient debug info. | |
| 49 symbol_level = 0 | |
| 46 } | 50 } |
| 47 | 51 |
| 48 nacl_toolchain("glibc_x86") { | 52 nacl_toolchain("glibc_x86") { |
| 49 toolchain_package = "nacl_x86_glibc" | 53 toolchain_package = "nacl_x86_glibc" |
| 50 toolchain_revision = nacl_x86_glibc_rev | 54 toolchain_revision = nacl_x86_glibc_rev |
| 51 toolchain_cpu = "x86" | 55 toolchain_cpu = "x86" |
| 52 toolprefix = | 56 toolprefix = |
| 53 rebase_path("${nacl_toolchain_dir}/${toolchain_package}/bin/i686-nacl-", | 57 rebase_path("${nacl_toolchain_dir}/${toolchain_package}/bin/i686-nacl-", |
| 54 root_build_dir) | 58 root_build_dir) |
| 55 is_clang = false | 59 is_clang = false |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 151 toolchain_tuple = "i686-nacl" | 155 toolchain_tuple = "i686-nacl" |
| 152 } | 156 } |
| 153 | 157 |
| 154 nacl_clang_toolchains("x64") { | 158 nacl_clang_toolchains("x64") { |
| 155 toolchain_tuple = "x86_64-nacl" | 159 toolchain_tuple = "x86_64-nacl" |
| 156 } | 160 } |
| 157 | 161 |
| 158 nacl_clang_toolchains("arm") { | 162 nacl_clang_toolchains("arm") { |
| 159 toolchain_tuple = "arm-nacl" | 163 toolchain_tuple = "arm-nacl" |
| 160 } | 164 } |
| OLD | NEW |