提交 7509a345 编写于 作者: O openharmony_ci 提交者: Gitee

!66 【轻量级 PR】:correct ohos clang config label.

Merge pull request !66 from yangming_ha/N/A
......@@ -109,7 +109,7 @@ config("pie_executable_config") {
ldflags = [ "-pie" ]
}
config("clang") {
config("ohos_clang") {
clang_dir = ""
if (ohos_build_compiler_dir != "") {
clang_dir = rebase_path("${ohos_build_compiler_dir}")
......
......@@ -31,7 +31,6 @@ if (board_toolchain != "" && use_board_toolchain) {
ohos_current_toolchain = board_toolchain
ohos_current_toolchain_type = board_toolchain_type
ohos_build_compiler = ohos_current_toolchain_type
hos_build_compiler = ohos_current_toolchain_type
if (board_toolchain_path != "") {
compile_prefix = "${board_toolchain_path}/${board_toolchain_prefix}"
} else {
......@@ -54,7 +53,7 @@ if (board_toolchain != "" && use_board_toolchain) {
ohos_current_as_command = ohos_current_cc_command
ohos_current_ld_command = ohos_current_cc_command
ohos_current_strip_command = "$compile_prefix/llvm-objcopy --strip-all"
default_target_configs += [ "//build/lite/config:clang_opt" ]
default_target_configs = [ "//build/lite/config:clang_opt" ]
}
} else {
# OHOS default toolchain: ohos_clang
......@@ -71,7 +70,7 @@ if (board_toolchain != "" && use_board_toolchain) {
ohos_current_strip_command =
"$ohos_clang_toolchain_dir/llvm-objcopy --strip-all"
set_default_toolchain("//build/lite/toolchain:linux_x86_64_ohos_clang")
default_target_configs = [ "//build/lite/config:clang" ]
default_target_configs = [ "//build/lite/config:ohos_clang" ]
default_target_configs += [ "//build/lite/config:clang_opt" ]
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册