Merge "Darwin: Use nm/otool from Soong instead of PATH"

This commit is contained in:
Treehugger Robot 2018-06-05 00:47:16 +00:00 committed by Gerrit Code Review
commit 506e00fa6a
1 changed files with 2 additions and 2 deletions

View File

@ -311,8 +311,8 @@ 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) || true)
$(hide) $(HOST_OTOOL) -l $(1) | grep LC_ID_DYLIB -A 5 > $(2)
$(hide) $(HOST_NM) -gP $(1) | cut -f1-2 -d" " | (grep -v U$$ >> $(2) || true)
endef
combo_target := HOST_