summaryrefslogtreecommitdiff
path: root/platforms/avr
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2023-08-23 19:55:42 +0000
committerQMK Bot <hello@qmk.fm>2023-08-23 19:55:42 +0000
commit79491e35e1c2abd30620dec21d6073515065cc1a (patch)
tree31cb933cd6d8456fb2ebfdb78fee3f8daa9568d5 /platforms/avr
parenta672fdd94b60cb7694c6ab497717b9fe7831f5e0 (diff)
parentf699fde7d979a731ad72892588328a00fe9840d9 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'platforms/avr')
-rw-r--r--platforms/avr/platform.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/platforms/avr/platform.mk b/platforms/avr/platform.mk
index 39a11b28e4..09028d80af 100644
--- a/platforms/avr/platform.mk
+++ b/platforms/avr/platform.mk
@@ -12,8 +12,7 @@ HEX = $(OBJCOPY) -O $(FORMAT) -R .eeprom -R .fuse -R .lock -R .signature
EEP = $(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 --no-change-warnings -O $(FORMAT)
BIN =
-# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
-ifneq ($(findstring 12.,$(shell avr-gcc --version 2>/dev/null)),)
+ifeq ("$(shell echo "int main(){}" | $(CC) --param=min-pagesize=0 -x c - -o /dev/null 2>&1)", "")
COMPILEFLAGS += --param=min-pagesize=0
endif