Specify object path instead of find it

Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/I5HO2C

Signed-off-by: huangyu <huangyu76@huawei.com>
Change-Id: Ie10068232d3bcedebe7ed819699364793860aa68
This commit is contained in:
huangyu 2022-07-18 21:09:20 +08:00
parent f88dfff447
commit 7a93275278
2 changed files with 5 additions and 2 deletions

View File

@ -77,6 +77,9 @@ action("cross_values_getters_generate") {
outputs = [ "$target_gen_dir/cross_values.h" ]
args = [
rebase_path(
"$target_out_dir/../../../$target_gen_dir/asm_defines_def_cpp_gen/asm_defines_def.o",
root_build_dir),
rebase_path("$target_gen_dir/generated_values", root_build_dir),
rebase_path(outputs[0], root_build_dir),
]

View File

@ -18,8 +18,8 @@ set -e
SRC_FULL_PATH="$(realpath ${0})"
SRC_DIR="$(dirname ${SRC_FULL_PATH})"
ASM_DEF_SRC=$(find ./ -name *asm_defines_def.o -prune)
ASM_DEF_SRC=${1}
echo "ASM_DEF_SRC: ${ASM_DEF_SRC}"
${SRC_DIR}/cross_values_getters_generator.rb ${ASM_DEF_SRC} ${@}
${SRC_DIR}/cross_values_getters_generator.rb ${ASM_DEF_SRC} ${@:2}