Use absolute path for output.
Test: manual Bug: 137798757 Change-Id: If2e9c31e1ff523914f5f2cecf8975e1da91c03a7
This commit is contained in:
parent
c4cea76c0d
commit
17c42bd105
1 changed files with 2 additions and 1 deletions
|
@ -19,12 +19,13 @@ declare -r out="${OUT_DIR:-out}"
|
||||||
# Build extraction files for C++ and Java. Build `merge_zips` which we use later.
|
# Build extraction files for C++ and Java. Build `merge_zips` which we use later.
|
||||||
build/soong/soong_ui.bash --build-mode --all-modules --dir=$PWD -k merge_zips xref_cxx xref_java
|
build/soong/soong_ui.bash --build-mode --all-modules --dir=$PWD -k merge_zips xref_cxx xref_java
|
||||||
#Build extraction file for Go files in build/soong directory.
|
#Build extraction file for Go files in build/soong directory.
|
||||||
|
declare -r abspath_out=$(realpath "${out}")
|
||||||
(cd build/soong;
|
(cd build/soong;
|
||||||
../../prebuilts/build-tools/linux-x86/bin/go_extractor \
|
../../prebuilts/build-tools/linux-x86/bin/go_extractor \
|
||||||
--goroot="${PWD}/../../prebuilts/go/linux-x86" \
|
--goroot="${PWD}/../../prebuilts/go/linux-x86" \
|
||||||
--rules=vnames.go.json \
|
--rules=vnames.go.json \
|
||||||
--canonicalize_package_corpus \
|
--canonicalize_package_corpus \
|
||||||
--output "${out}/soong/all.go.kzip" \
|
--output "${abspath_out}/soong/all.go.kzip" \
|
||||||
./... )
|
./... )
|
||||||
|
|
||||||
declare -r kzip_count=$(find "$out" -name '*.kzip' | wc -l)
|
declare -r kzip_count=$(find "$out" -name '*.kzip' | wc -l)
|
||||||
|
|
Loading…
Reference in a new issue