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
This commit is contained in:
parent
0a00583462
commit
b29799f887
8 changed files with 53 additions and 0 deletions
|
@ -39,4 +39,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
// ./tmk_core
|
||||
// ......
|
||||
|
||||
#ifdef USE_Link_Time_Optimization
|
||||
// LTO has issues with macros (action_get_macro) and "functions" (fn_actions),
|
||||
// so just disable them
|
||||
#define NO_ACTION_MACRO
|
||||
#define NO_ACTION_FUNCTION
|
||||
|
||||
#define DISABLE_LEADER
|
||||
#endif // USE_Link_Time_Optimization
|
||||
|
||||
#endif /* CONFIG_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue