| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium 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/toolchain/clang.gni") | 6 import("//build/toolchain/clang.gni") |
| 7 import("//build/toolchain/gcc_toolchain.gni") | 7 import("//build/toolchain/gcc_toolchain.gni") |
| 8 import("//build/toolchain/goma.gni") | 8 import("//build/toolchain/goma.gni") |
| 9 | 9 |
| 10 if (is_gyp) { | 10 if (is_gyp) { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 ld = cxx | 54 ld = cxx |
| 55 | 55 |
| 56 toolchain_cpu_arch = "arm" | 56 toolchain_cpu_arch = "arm" |
| 57 toolchain_os = "linux" | 57 toolchain_os = "linux" |
| 58 } | 58 } |
| 59 | 59 |
| 60 gcc_toolchain("x86") { | 60 gcc_toolchain("x86") { |
| 61 if (is_clang) { | 61 if (is_clang) { |
| 62 if (use_clang_type_profiler) { | 62 if (use_clang_type_profiler) { |
| 63 prefix = rebase_path("//third_party/llvm-allocated-type/Linux_ia32/bin", | 63 prefix = rebase_path("//third_party/llvm-allocated-type/Linux_ia32/bin", |
| 64 ".", root_build_dir) | 64 root_build_dir) |
| 65 } else { | 65 } else { |
| 66 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin", | 66 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin", |
| 67 ".", root_build_dir) | 67 root_build_dir) |
| 68 } | 68 } |
| 69 cc = "$prefix/clang" | 69 cc = "$prefix/clang" |
| 70 cxx = "$prefix/clang++" | 70 cxx = "$prefix/clang++" |
| 71 } else { | 71 } else { |
| 72 cc = "gcc" | 72 cc = "gcc" |
| 73 cxx = "g++" | 73 cxx = "g++" |
| 74 } | 74 } |
| 75 | 75 |
| 76 ar = "ar" | 76 ar = "ar" |
| 77 ld = cxx | 77 ld = cxx |
| 78 | 78 |
| 79 toolchain_cpu_arch = "x86" | 79 toolchain_cpu_arch = "x86" |
| 80 toolchain_os = "linux" | 80 toolchain_os = "linux" |
| 81 } | 81 } |
| 82 | 82 |
| 83 gcc_toolchain("x64") { | 83 gcc_toolchain("x64") { |
| 84 if (is_clang) { | 84 if (is_clang) { |
| 85 if (use_clang_type_profiler) { | 85 if (use_clang_type_profiler) { |
| 86 prefix = rebase_path("//third_party/llvm-allocated-type/Linux_x64/bin", | 86 prefix = rebase_path("//third_party/llvm-allocated-type/Linux_x64/bin", |
| 87 ".", root_build_dir) | 87 root_build_dir) |
| 88 } else { | 88 } else { |
| 89 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin", | 89 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin", |
| 90 ".", root_build_dir) | 90 root_build_dir) |
| 91 } | 91 } |
| 92 cc = "$prefix/clang" | 92 cc = "$prefix/clang" |
| 93 cxx = "$prefix/clang++" | 93 cxx = "$prefix/clang++" |
| 94 } else { | 94 } else { |
| 95 cc = "gcc" | 95 cc = "gcc" |
| 96 cxx = "g++" | 96 cxx = "g++" |
| 97 } | 97 } |
| 98 | 98 |
| 99 ar = "ar" | 99 ar = "ar" |
| 100 ld = cxx | 100 ld = cxx |
| 101 | 101 |
| 102 toolchain_cpu_arch = "x64" | 102 toolchain_cpu_arch = "x64" |
| 103 toolchain_os = "linux" | 103 toolchain_os = "linux" |
| 104 } | 104 } |
| 105 | 105 |
| 106 gcc_toolchain("mipsel") { | 106 gcc_toolchain("mipsel") { |
| 107 cc = "mipsel-linux-gnu-gcc" | 107 cc = "mipsel-linux-gnu-gcc" |
| 108 cxx = "mipsel-linux-gnu-g++" | 108 cxx = "mipsel-linux-gnu-g++" |
| 109 ar = "mipsel-linux-gnu-ar" | 109 ar = "mipsel-linux-gnu-ar" |
| 110 ld = cxx | 110 ld = cxx |
| 111 | 111 |
| 112 toolchain_cpu_arch = "mipsel" | 112 toolchain_cpu_arch = "mipsel" |
| 113 toolchain_os = "linux" | 113 toolchain_os = "linux" |
| 114 } | 114 } |
| OLD | NEW |