pc hosted: Don't try to report memory usage.

When building on a pc gcc does not have that parameter and clang fails
with an error. This caused a build regression on Mac.
This commit is contained in:
Piotr Esden-Tempski 2022-03-29 16:45:08 -07:00
parent a0c77e216d
commit b59ca5142a
1 changed files with 5 additions and 2 deletions

View File

@ -61,11 +61,14 @@ SRC = \
stm32g0.c \
target.c \
# Output memory usage information
LDFLAGS += -Wl,--print-memory-usage
include $(PLATFORM_DIR)/Makefile.inc
ifneq ($(PC_HOSTED),1)
# Output memory usage information
LDFLAGS += -Wl,--print-memory-usage
endif
OPT_FLAGS ?= -Os
CFLAGS += $(OPT_FLAGS)
LDFLAGS += $(OPT_FLAGS)