summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2017-05-09 20:30:40 -0700
committerColin Cross <ccross@android.com>2017-05-09 20:30:40 -0700
commit85c2d92b58c27b88542e0090eafa0557397d93f0 (patch)
treec2cd1c228aed38592c33443156b1c7032842407d
parentf17ec1f7a05d6cf9f8b36a6294be01e11903a6a2 (diff)
Clear artifacts before asan builds
Asan builds were picking up old non-asan libraries. Clear the soong host artifacts before rebuilding with asan enabled. Test: verify asan/lib64/libprotobuf-cpp-full.so is not in zip Change-Id: I0b688c806b74a535576130fc513da8fce81e6546
-rwxr-xr-xbuild-prebuilts.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/build-prebuilts.sh b/build-prebuilts.sh
index 2b1325e..4648db0 100755
--- a/build-prebuilts.sh
+++ b/build-prebuilts.sh
@@ -58,6 +58,7 @@ EOF
"SanitizeHost": ["address"]
}
EOF
+ rm -rf ${SOONG_HOST_OUT}
${SOONG_OUT}/soong ${SOONG_ASAN_BINARIES[@]/#/${SOONG_HOST_OUT}/bin/} ${SOONG_HOST_OUT}/nativetest64/ninja_test/ninja_test
${SOONG_HOST_OUT}/nativetest64/ninja_test/ninja_test
mkdir -p ${SOONG_OUT}/dist/asan/bin