Fix windows and two samd builds

This commit is contained in:
Scott Shawcroft 2022-05-31 14:48:41 -07:00
parent 4d776339ad
commit 7fc0aa5791
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA
4 changed files with 12 additions and 1 deletions

View File

@ -270,6 +270,9 @@ SRC_ASF += \
hpl/oscctrl/hpl_oscctrl.c \
hpl/trng/hpl_trng.c \
# Ignore these errors
$(BUILD)/asf4/same54/hpl/sercom/hpl_sercom.o: CFLAGS += -Wno-maybe-uninitialized
else ifeq ($(CHIP_FAMILY), same51)
SRC_ASF += \
hal/src/hal_rand_sync.c \

View File

@ -12,3 +12,5 @@ LONGINT_IMPL = MPZ
CIRCUITPY__EVE = 1
CIRCUITPY_CANIO = 1
CIRCUITPY_LTO = one

View File

@ -124,6 +124,12 @@ ifeq ($(CHIP_FAMILY),same51)
# No native touchio on SAME51.
CIRCUITPY_TOUCHIO_USE_NATIVE = 0
ifeq ($(CIRCUITPY_FULL_BUILD),1)
CIRCUITPY_LTO ?= balanced
else
CIRCUITPY_LTO ?= one
endif
# The ?='s allow overriding in mpconfigboard.mk.
CIRCUITPY_ALARM ?= 1

View File

@ -69,7 +69,7 @@ endif
CIRCUITPY_LTO ?= 0
ifneq ($(CIRCUITPY_LTO),0)
CFLAGS += -DCIRCUITPY_LTO=1 -flto=auto -flto-partition=$(CIRCUITPY_LTO)
CFLAGS += -DCIRCUITPY_LTO=1 -flto=$(shell $(NPROC)) -flto-partition=$(CIRCUITPY_LTO)
else
CFLAGS += -DCIRCUITPY_LTO=0
endif