| Index: build/toolchain/fuchsia/BUILD.gn
|
| diff --git a/build/toolchain/fuchsia/BUILD.gn b/build/toolchain/fuchsia/BUILD.gn
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f6a709b059cb6ce62dff94ef02162dfa1bfeeb13
|
| --- /dev/null
|
| +++ b/build/toolchain/fuchsia/BUILD.gn
|
| @@ -0,0 +1,28 @@
|
| +# Copyright 2017 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +import("//build/toolchain/gcc_toolchain.gni")
|
| +import("//build/config/fuchsia/config.gni")
|
| +
|
| +gcc_toolchain("x64") {
|
| + assert(current_cpu == "x64")
|
| + clang_cpu = "x86_64"
|
| +
|
| + assert(host_os == "linux")
|
| + clang_os = "linux"
|
| +
|
| + clang_name = "clang+llvm-$clang_cpu-$clang_os"
|
| + clang_path = fuchsia_sdk + "/$clang_name"
|
| + prefix = rebase_path("$clang_path/bin/", root_build_dir)
|
| +
|
| + cc = "${prefix}clang"
|
| + cxx = "${prefix}clang++"
|
| + ld = cxx
|
| + ar = "${prefix}llvm-ar"
|
| +
|
| + toolchain_args = {
|
| + current_cpu = "x64"
|
| + current_os = "fuchsia"
|
| + }
|
| +}
|
|
|