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-unknown-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-unknown-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-ohos" 29 toolchain_args = { 30 current_cpu = "x86_64" 31 } 32} 33 34ohos_clang_toolchain("ohos_clang_riscv64") { 35 sysroot = "${musl_sysroot}" 36 lib_dir = "usr/lib/riscv64-linux-ohos" 37 rust_abi_target = "riscv64-unknown-linux-gnu" 38 toolchain_args = { 39 current_cpu = "riscv64" 40 } 41} 42 43ohos_clang_toolchain("ohos_clang_mipsel") { 44 sysroot = "${musl_sysroot}" 45 if (is_legacy) { 46 lib_dir = "usr/lib/mipsel-linux-ohos/nanlegacy" 47 } else { 48 lib_dir = "usr/lib/mipsel-linux-ohos" 49 } 50 rust_abi_target = "mipsel-unknown-linux-gnu" 51 toolchain_args = { 52 current_cpu = "mipsel" 53 } 54} 55