Switch to toybox stat on macOS too.

Bug: http://b/139450866
Test: builds
Change-Id: I1a992a63fbf5181a48262901730b8b67661cc259
This commit is contained in:
Elliott Hughes 2019-09-05 10:02:41 -07:00
parent 9432b4d052
commit 2e51a1553f
3 changed files with 3 additions and 13 deletions

View File

@ -59,8 +59,3 @@ $(hide) $(PRIVATE_CXX) \
$(PRIVATE_LDFLAGS) \
$(PRIVATE_LDLIBS)
endef
# $(1): The file to check
define get-file-size
stat -f "%z" $(1)
endef

View File

@ -23,8 +23,3 @@ endef
############################################################
## Macros after this line are shared by the 64-bit config.
# $(1): The file to check
define get-file-size
stat -c "%s" "$(1)" | tr -d '\n'
endef

View File

@ -2678,9 +2678,9 @@ endef
###########################################################
# $(1): The file to check
ifndef get-file-size
$(error HOST_OS must define get-file-size)
endif
define get-file-size
stat -c "%s" "$(1)" | tr -d '\n'
endef
# $(1): The file(s) to check (often $@)
# $(2): The partition size.