Fix "VNDK version 28 not found" error when TARGET_BUILD_UNBUNDLED isn't
set.

The problem was that the Soong --dumpvars-mode invocations didn't have
TARGET_BUILD_UNBUNDLED set.

This also works around a bash quirk where an error status from those
invocations was ignored.

Also pass along command line arguments to Soong build invocations, to
e.g. be able to use --skip-soong-tests locally.

Test: art/build/build-art-module.sh without prior lunch
Test: art/build/build-art-module.sh --skip-soong-tests
Bug: 172480615
Change-Id: I1a1b45d7f86d54447880245ea46883be9304aec9
1 file changed