summaryrefslogtreecommitdiffstats
path: root/keyboards/helix/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/helix/config.h')
-rw-r--r--keyboards/helix/config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/keyboards/helix/config.h b/keyboards/helix/config.h
index 7bd4d26456..fbfbd32804 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/>.
// ./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 */