| OLD | NEW |
| (Empty) | |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//build/toolchain/gcc_toolchain.gni") |
| 6 import("//build/config/fuchsia/config.gni") |
| 7 |
| 8 gcc_toolchain("x64") { |
| 9 assert(current_cpu == "x64") |
| 10 clang_cpu = "x86_64" |
| 11 |
| 12 assert(host_os == "linux") |
| 13 clang_os = "linux" |
| 14 |
| 15 clang_name = "clang+llvm-$clang_cpu-$clang_os" |
| 16 clang_path = fuchsia_sdk + "/$clang_name" |
| 17 prefix = rebase_path("$clang_path/bin/", root_build_dir) |
| 18 |
| 19 cc = "${prefix}clang" |
| 20 cxx = "${prefix}clang++" |
| 21 ld = cxx |
| 22 ar = "${prefix}llvm-ar" |
| 23 |
| 24 toolchain_args = { |
| 25 current_cpu = "x64" |
| 26 current_os = "fuchsia" |
| 27 } |
| 28 } |
| OLD | NEW |