-
-
Notifications
You must be signed in to change notification settings - Fork 39.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed build break (size overflow) HelixPico with Backlight or Underglow #3546
Conversation
It may help to make sure that console and command are disabled in the rules.mk (for the main keyboard, actually). And it may be a good idea to add this block to the config.h: #if !defined(NO_DEBUG) && !defined(CONSOLE_ENABLE)
#define NO_DEBUG // if console isn't enabled, why are we debugging?
#endif // !NO_DEBUG
#if !defined(NO_PRINT) && !defined(CONSOLE_ENABLE)
#define NO_PRINT // if console is disabled, there is nowhere to print to
#endif // !NO_PRINT
// 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 I use this, along with |
this block
more simply as follows?
|
Sorry, yeah, it probably would. I have it set that way, as some boards have those defined already, and if you redefine them with undefining them... it causes the compiler to error out. Bet if this in the keyboard itself, then that would be better |
I tried '#define NO_DEBUG' and '#define NO_PRINT' in config.h, but it occured error. because tmk_core/common.mk include this block.
|
Ah, good to know! However, the other stuff would still help (the no action function and no macros) |
Thanks! |
Thank you ! |
…or Underglow (qmk#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
…or Underglow (qmk#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
…or Underglow (qmk#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
No description provided.