mirror of
https://github.com/oltaco/Adafruit_nRF52_Bootloader_OTAFIX.git
synced 2026-06-01 11:14:03 +00:00
Merge pull request #273 from whiz00/build-fix
fix 'array subscript 0 is outside array bounds' for newer gcc versions
This commit is contained in:
@@ -323,6 +323,11 @@ ifeq ($(DEBUG), 1)
|
||||
C_SRC += $(RTT_SRC)/RTT/SEGGER_RTT.c
|
||||
endif
|
||||
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
|
||||
ifneq ($(findstring 12.,$(shell $(CC) --version 2>/dev/null)),)
|
||||
CFLAGS += --param=min-pagesize=0
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Linker Flags
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user