]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
[Keyboard] Added workaround for serial.c/LTO issue for helix/rev2 and helix/pico...
authorTakeshi ISHII <2170248+mtei@users.noreply.github.com>
Sun, 8 Dec 2019 07:44:54 +0000 (16:44 +0900)
committerDrashna Jaelre <drashna@live.com>
Sun, 8 Dec 2019 07:44:54 +0000 (23:44 -0800)
keyboards/helix/pico/rules.mk
keyboards/helix/rev2/rules.mk

index e916f25f450288b25916942b35b5c53507a66de9..d3ad20ccad89fa8ed8839f57b8678ff6ce32731c 100644 (file)
@@ -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
index 4db8f7da94952e09e2996ea803281d7f12b2e435..7357d568c69091cd647027b3d720c01c03826266 100644 (file)
@@ -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