diff --git a/musl_template.gni b/musl_template.gni index ffd70ec8e16c512fbc5a24e7b7c6a06377030ed5..81f37ca4f19baa2faaee2422a7a97756c0ec32ca 100644 --- a/musl_template.gni +++ b/musl_template.gni @@ -293,7 +293,6 @@ template("musl_libs") { source_set("soft_musl_src") { sources_orig = [] sources = [] - set_sources_assignment_filter([]) sources_orig = musl_src_arch_file + musl_src_file sources_orig -= musl_src_filterout diff --git a/scripts/build_lite/BUILD.gn b/scripts/build_lite/BUILD.gn index 415825622abdeb0d8f61d64f74aad5cbcb437d3c..78bb85d4b65a4b6815dfc7825b89e16c8428ae91 100644 --- a/scripts/build_lite/BUILD.gn +++ b/scripts/build_lite/BUILD.gn @@ -100,8 +100,8 @@ action_foreach("strip") { no_default_deps = true deps = [ ":build_sysroot" ] script = "//build/lite/run_shell_cmd.py" - set_sources_assignment_filter([ "*.txt" ]) sources = get_target_outputs(deps[0]) + sources = filter_exclude(sources, [ "*.txt" ]) outputs = [ "$root_out_dir/libs/{{source_file_part}}" ] args = [ "$ohos_current_strip_command",