Merge "Fix empty mac .toc generation"

This commit is contained in:
Colin Cross 2016-10-05 02:35:02 +00:00 committed by Gerrit Code Review
commit 7bc7704921
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ endef
# Commands to generate .toc file from Darwin dynamic library.
define _gen_toc_command_for_macho
$(hide) otool -l $(1) | grep LC_ID_DYLIB -A 5 > $(2)
$(hide) nm -gP $(1) | cut -f1-2 -d" " | grep -v U$$ >> $(2)
$(hide) nm -gP $(1) | cut -f1-2 -d" " | (grep -v U$$ >> $(2) || true)
endef
combo_target := HOST_