Skip to content

Commit

Permalink
[Keyboard] Update Lets Split Sockets to use LTO_ENABLE (qmk#7516)
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna authored and zvecr committed Dec 1, 2019
1 parent f099142 commit dfe18b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions keyboards/lets_split/sockets/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
//#define NO_ACTION_LAYER
//#define NO_ACTION_TAPPING
//#define NO_ACTION_ONESHOT
//#define NO_ACTION_MACRO
//#define NO_ACTION_FUNCTION

#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
2 changes: 1 addition & 1 deletion keyboards/lets_split/sockets/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ BACKLIGHT_ENABLE = no
AUDIO_ENABLE = yes
RGBLIGHT_ENABLE = yes #Don't enable this along with I2C

EXTRAFLAGS += -flto -DUSE_Link_Time_Optimization
LTO_ENABLE = yes

0 comments on commit dfe18b4

Please sign in to comment.