aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/template
diff options
context:
space:
mode:
authorStephen Hogsten <stephenhogsten@gmail.com>2019-11-11 18:27:20 -0800
committerfauxpark <fauxpark@gmail.com>2019-11-12 13:27:20 +1100
commit3f6426ff5f14d1cdac9af935aaf175d3dbca3592 (patch)
tree1815cf88c7ef59ef9c0c3c44d77515da56cc241b /quantum/template
parente75919960fc53d16b6d8281018689aec3e62da1b (diff)
downloadfirmware-3f6426ff5f14d1cdac9af935aaf175d3dbca3592.tar.gz
firmware-3f6426ff5f14d1cdac9af935aaf175d3dbca3592.tar.bz2
firmware-3f6426ff5f14d1cdac9af935aaf175d3dbca3592.zip
disable deprecated actions (#7211)
* disable deprecated actions * wrap no action with link time optimization test * fix link time optimization check
Diffstat (limited to 'quantum/template')
-rw-r--r--quantum/template/avr/config.h7
-rw-r--r--quantum/template/ps2avrgb/config.h6
2 files changed, 11 insertions, 2 deletions
diff --git a/quantum/template/avr/config.h b/quantum/template/avr/config.h
index 304a54ae5..7e4a01449 100644
--- a/quantum/template/avr/config.h
+++ b/quantum/template/avr/config.h
@@ -190,9 +190,12 @@ 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
+/* disable these deprecated features by default */
+#ifndef LINK_TIME_OPTIMIZATION_ENABLE
+ #define NO_ACTION_MACRO
+ #define NO_ACTION_FUNCTION
+#endif
/*
* MIDI options
*/
diff --git a/quantum/template/ps2avrgb/config.h b/quantum/template/ps2avrgb/config.h
index f6d7c25e0..4deb719f5 100644
--- a/quantum/template/ps2avrgb/config.h
+++ b/quantum/template/ps2avrgb/config.h
@@ -44,6 +44,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define NO_UART 1
+/* disable these deprecated features by default */
+#ifndef LINK_TIME_OPTIMIZATION_ENABLE
+ #define NO_ACTION_MACRO
+ #define NO_ACTION_FUNCTION
+#endif
+
/* key combination for magic key command */
/* defined by default; to change, uncomment and set to the combination you want */
// #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT)