• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3# found in the LICENSE file.
4
5import("//build/toolchain/ohos/ohos_toolchain.gni")
6
7ohos_clang_toolchain("ohos_clang_arm") {
8  sysroot = "${musl_sysroot}"
9  lib_dir = "usr/lib/arm-linux-ohos"
10  rust_abi_target = "armv7-linux-ohos"
11  toolchain_args = {
12    current_cpu = "arm"
13  }
14}
15
16ohos_clang_toolchain("ohos_clang_arm64") {
17  sysroot = "${musl_sysroot}"
18  lib_dir = "usr/lib/aarch64-linux-ohos"
19  rust_abi_target = "aarch64-linux-ohos"
20  toolchain_args = {
21    current_cpu = "arm64"
22  }
23}
24
25ohos_clang_toolchain("ohos_clang_x86_64") {
26  sysroot = "${musl_sysroot}"
27  lib_dir = "usr/lib/x86_64-linux-ohos"
28  rust_abi_target = "x86_64-unknown-linux-gnu"
29  toolchain_args = {
30    current_cpu = "x86_64"
31  }
32}
33