diff --git a/rust/rustc_toolchain.gni b/rust/rustc_toolchain.gni index fb7b2eca6f6b3dc966aede88e8a619b1cea3712d..d1babf028f936e8c4d96955b9fe06c4a61395c53 100644 --- a/rust/rustc_toolchain.gni +++ b/rust/rustc_toolchain.gni @@ -11,6 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +import("//build/config/clang/clang.gni") import("//build/config/ohos/config.gni") import("//build/config/ohos/musl.gni") @@ -38,10 +39,8 @@ clippy_driver = "${rust_bin}/clippy-driver" stdlib_host_path = "${rust_path}/lib" -clang = rebase_path("//prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang", - root_build_dir) +clang = rebase_path("${default_clang_base_path}/bin/clang", root_build_dir) musl_path = rebase_path("${musl_sysroot}", root_build_dir) musllib = rebase_path("${musl_sysroot}/usr/lib/${abi_target}", root_build_dir) llvm_strip = - rebase_path("//prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-strip", - root_build_dir) + rebase_path("${default_clang_base_path}/bin/llvm-strip", root_build_dir)