diff options
| author | Takeshi ISHII <2170248+mtei@users.noreply.github.com> | 2018-08-03 06:16:17 +0900 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2018-08-02 14:16:17 -0700 |
| commit | b29799f8874a86d22b6eca4ce1352f394b276b7a (patch) | |
| tree | f3203f1ad68e9f0ea19844a5315f886e93ce79f1 /keyboards/helix/config.h | |
| parent | 0a005834624e9b3247bcd48fdc1790df8611ba86 (diff) | |
| download | qmk_firmware-b29799f8874a86d22b6eca4ce1352f394b276b7a.tar.gz qmk_firmware-b29799f8874a86d22b6eca4ce1352f394b276b7a.zip | |
Keyboard: fixed build break (size overflow) HelixPico with Backlight or Underglow (#3546)
* build break fix for HelixPico
* add customize variable 'Link_Time_Optimization' into rev2 and pico keymaps rules.mk
* "CFLAGS += -flto" change to "EXTRAFLAGS += -flto"
* add USE_Link_Time_Optimization macro
Diffstat (limited to 'keyboards/helix/config.h')
| -rw-r--r-- | keyboards/helix/config.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/keyboards/helix/config.h b/keyboards/helix/config.h index 7bd4d2645..fbfbd3280 100644 --- a/keyboards/helix/config.h +++ b/keyboards/helix/config.h | |||
| @@ -39,4 +39,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 39 | // ./tmk_core | 39 | // ./tmk_core |
| 40 | // ...... | 40 | // ...... |
| 41 | 41 | ||
| 42 | #ifdef USE_Link_Time_Optimization | ||
| 43 | // LTO has issues with macros (action_get_macro) and "functions" (fn_actions), | ||
| 44 | // so just disable them | ||
| 45 | #define NO_ACTION_MACRO | ||
| 46 | #define NO_ACTION_FUNCTION | ||
| 47 | |||
| 48 | #define DISABLE_LEADER | ||
| 49 | #endif // USE_Link_Time_Optimization | ||
| 50 | |||
| 42 | #endif /* CONFIG_H */ | 51 | #endif /* CONFIG_H */ |
