summaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorTakeshi ISHII <2170248+mtei@users.noreply.github.com>2019-12-08 16:44:54 +0900
committerDrashna Jaelre <drashna@live.com>2019-12-07 23:44:54 -0800
commit722c196b08df6c9dcbb6eb6eed0bb9732609c511 (patch)
tree06df894d85ed4e0178a3d1e8bbb926c44bdc986d /keyboards
parentc6ebb59a8beb3e66f9f83a31b9f9a2b5cdb17baa (diff)
[Keyboard] Added workaround for serial.c/LTO issue for helix/rev2 and helix/pico. (#7558)
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/helix/pico/rules.mk5
-rw-r--r--keyboards/helix/rev2/rules.mk5
2 files changed, 10 insertions, 0 deletions
diff --git a/keyboards/helix/pico/rules.mk b/keyboards/helix/pico/rules.mk
index e916f25f45..d3ad20ccad 100644
--- a/keyboards/helix/pico/rules.mk
+++ b/keyboards/helix/pico/rules.mk
@@ -5,6 +5,11 @@ SRC += local_drivers/serial.c
SRC += local_drivers/ssd1306.c
KEYBOARD_PATHS += $(HELIX_TOP_DIR)/local_drivers
+# A workaround until #7089 is merged.
+# serial.c must not be compiled with the -lto option.
+# The current LIB_SRC has a side effect with the -fno-lto option, so use it.
+LIB_SRC += local_drivers/serial.c
+
CUSTOM_MATRIX = yes
SRC += pico/matrix.c
diff --git a/keyboards/helix/rev2/rules.mk b/keyboards/helix/rev2/rules.mk
index 4db8f7da94..7357d568c6 100644
--- a/keyboards/helix/rev2/rules.mk
+++ b/keyboards/helix/rev2/rules.mk
@@ -5,6 +5,11 @@ SRC += local_drivers/serial.c
SRC += local_drivers/ssd1306.c
KEYBOARD_PATHS += $(HELIX_TOP_DIR)/local_drivers
+# A workaround until #7089 is merged.
+# serial.c must not be compiled with the -lto option.
+# The current LIB_SRC has a side effect with the -fno-lto option, so use it.
+LIB_SRC += local_drivers/serial.c
+
CUSTOM_MATRIX = yes
SRC += rev2/matrix.c