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
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 @@
"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