diff options
| author | 2018-12-21 23:47:19 +0000 | |
|---|---|---|
| committer | 2018-12-21 23:47:19 +0000 | |
| commit | 08885128f9a5b989d6598eae1c96054b4420701b (patch) | |
| tree | e9ab93d13dd59f14aaf0fcd57aabec0144b7a204 | |
| parent | 46a8938026c425d54f2c02631ca584b4d1f2666c (diff) | |
| parent | cefcbc05cc10998cbc5742f3ca72c140ff65d6dc (diff) | |
Merge "Create dexpreopt.config in build_linux_bionic.sh"
| -rwxr-xr-x | tools/build_linux_bionic.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/build_linux_bionic.sh b/tools/build_linux_bionic.sh index 94ccc41331..d3c19120ca 100755 --- a/tools/build_linux_bionic.sh +++ b/tools/build_linux_bionic.sh @@ -42,6 +42,7 @@ fi out_dir=$(get_build_var OUT_DIR) host_out=$(get_build_var HOST_OUT) +mk_product_out=$(get_build_var PRODUCT_OUT) # TODO(b/31559095) Figure out a better way to do this. # @@ -52,6 +53,12 @@ tmp_soong_var=$(mktemp --tmpdir soong.variables.bak.XXXXXX) cat $out_dir/soong/soong.variables > ${tmp_soong_var} build/soong/soong_ui.bash --make-mode clean mkdir -p $out_dir/soong +mkdir -p $mk_product_out + +# TODO(b/31559095) Soong will panic if this file isn't present. It contains +# information from MAKE needed to let soong handle the invocation of dex2oat. +# This would be great to have but for now isn't needed. +echo "{}" > $mk_product_out/dexpreopt.config python3 <<END - ${tmp_soong_var} ${out_dir}/soong/soong.variables import json |