aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Rascher <jon@bcat.name>2020-01-11 19:09:04 -0600
committerJoel Challis <git@zvecr.com>2020-01-12 01:09:04 +0000
commit08cd99683999eb8fa009116a80255c185fdb9a4b (patch)
tree731ec4c4b53525f1c689d82d19d9b378deebcc1b
parent8b9d4fd341c57d1bc38a18a96d213248e9afcc52 (diff)
downloadqmk_firmware-08cd99683999eb8fa009116a80255c185fdb9a4b.tar.gz
qmk_firmware-08cd99683999eb8fa009116a80255c185fdb9a4b.zip
Add Lily58 serial to LIB_SRC to avoid LTO issue (#7868)
This code is timing sensitive and seems to break with LTO enabled (at least on avr-gcc 8.3.0... it worked on older gcc versions). This is the same workaround as #7558 applied for the Helix.
-rw-r--r--keyboards/lily58/rules.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/keyboards/lily58/rules.mk b/keyboards/lily58/rules.mk
index af25531ec..fce62532f 100644
--- a/keyboards/lily58/rules.mk
+++ b/keyboards/lily58/rules.mk
@@ -36,6 +36,11 @@ SRC += i2c.c
36SRC += serial.c 36SRC += serial.c
37SRC += ssd1306.c 37SRC += ssd1306.c
38 38
39# A workaround until #7089 is merged.
40# serial.c must not be compiled with the -lto option.
41# The current LIB_SRC has a side effect with the -fno-lto option, so use it.
42LIB_SRC += serial.c
43
39# if firmware size over limit, try this option 44# if firmware size over limit, try this option
40# CFLAGS += -flto 45# CFLAGS += -flto
41 46