From 3d2130621886b3ed54f0ec404711e9f3ea6dc22e Mon Sep 17 00:00:00 2001 From: lijunru Date: Tue, 19 Dec 2023 20:04:00 +0800 Subject: [PATCH] Supports the command line to specify toolchain_dir Issue: https://gitee.com/openharmony/interface_sdk_c/issues/I8PRX1 Test: build Signed-off-by: lijunru Change-Id: I551b69063b0c534bf1a7aa34960b63ee3dac0ad8 --- third_party/musl/ndk_script/BUILD.gn | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/third_party/musl/ndk_script/BUILD.gn b/third_party/musl/ndk_script/BUILD.gn index bbca1b91ebc..6853fabf274 100644 --- a/third_party/musl/ndk_script/BUILD.gn +++ b/third_party/musl/ndk_script/BUILD.gn @@ -17,7 +17,9 @@ import("//third_party/musl/musl_config.gni") import("//third_party/musl/musl_src.gni") import("//third_party/musl/musl_template.gni") -toolchains_dir = "//prebuilts/clang/ohos" +declare_args() { + toolchains_dir = "//prebuilts/clang/ohos" +} musl_target_out_dir = "${root_out_dir}/obj/third_party/musl" ndk_musl_include = "ndk_musl_include" interface_musl_dir = "//interface/sdk_c/third_party/musl" -- Gitee