From 22b88e24ac0d2375ff364036172d604f07c12023 Mon Sep 17 00:00:00 2001 From: wengchangcheng Date: Sat, 15 Oct 2022 12:35:45 +0800 Subject: [PATCH] Descriptor: Fix dupbuild warning Details: Only build host es2abc on linux platform Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/I5VW48 Signed-off-by: wengchangcheng Change-Id: I153b9272c2250303be81ca21c90fff5e8b98eab8 --- es2panda/BUILD.gn | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/es2panda/BUILD.gn b/es2panda/BUILD.gn index 075eedd3e8..44a2d7010f 100644 --- a/es2panda/BUILD.gn +++ b/es2panda/BUILD.gn @@ -515,15 +515,17 @@ if (is_mac) { } } -ohos_copy("build_es2abc_for_hap") { - deps = [ ":es2panda(${host_toolchain})" ] - es2abc_root_out_dir = - get_label_info(":es2panda_build($host_toolchain)", "root_out_dir") - es2abc_target_out_dir = - get_label_info(":es2panda_build($host_toolchain)", "target_out_dir") - - sources = [ "${es2abc_root_out_dir}/arkcompiler/ets_frontend/es2abc" ] - outputs = [ "${es2abc_target_out_dir}/build/bin/es2abc" ] +if (is_linux) { + ohos_copy("build_es2abc_for_hap") { + deps = [ ":es2panda(${host_toolchain})" ] + es2abc_root_out_dir = + get_label_info(":es2panda_build($host_toolchain)", "root_out_dir") + es2abc_target_out_dir = + get_label_info(":es2panda_build($host_toolchain)", "target_out_dir") + + sources = [ "${es2abc_root_out_dir}/arkcompiler/ets_frontend/es2abc" ] + outputs = [ "${es2abc_target_out_dir}/build/bin/es2abc" ] + } } group("es2panda_build") { -- Gitee