Use relative paths in copygcclib.sh deps files

Strip $PWD/ off the beginning of the path printed by gcc.

Bug: 68719465
Test: m checkbuild
Test: prebuilts/build-tools/linux-x86/bin/ninja -f out/combined-${TARGET_PRODUCT}.ninja -t deps | grep -E '^[[:space:]]*/' | sort | uniq
This commit is contained in:
Colin Cross
2017-11-06 12:55:44 -08:00
parent 39d450b374
commit d7903535ea

View File

@@ -2,6 +2,6 @@
OUT=$1
shift
LIBPATH=$($@)
LIBPATH=$($@ | sed -e "s|^$PWD/||")
cp -f $LIBPATH $OUT
echo "$OUT: $LIBPATH" > ${OUT}.d