Fix dump-vars output to handle quotes.

Bug: 132766811
Test: treehugger
Change-Id: I4c054343cd11a089d93b7386b8d8ba04a7b6b77e
This commit is contained in:
Sasha Smundak 2019-05-30 20:59:50 -07:00
parent 523362d544
commit 23a44f1b05
1 changed files with 1 additions and 1 deletions

View File

@ -27,6 +27,6 @@ ANDROID_CLANG_PREBUILTS := prebuilts/clang/host/$(HOST_PREBUILT_TAG)
.PHONY: dump-many-vars
dump-many-vars :
@$(foreach v, $(DUMP_MANY_VARS),\
echo "$(DUMP_VAR_PREFIX)$(v)='$($(v))'";)
printf "%s='%s'\n" '$(DUMP_VAR_PREFIX)$(v)' '$($(v))';)
endif # CALLED_FROM_SETUP