summaryrefslogtreecommitdiff
path: root/supervisor
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2021-01-08 22:16:58 -0500
committerDan Halbert <halbert@halwitz.org>2021-01-08 23:07:21 -0500
commit255ffa979cd62063bcbabbc64e3c4fb8d1c0f216 (patch)
tree7261caddac6530758e662a638ea9a01cb2c83edd /supervisor
parent55c80754c76a115e2f128931a408e6702aee6ef4 (diff)
avoid inline compile errors
Diffstat (limited to 'supervisor')
-rw-r--r--supervisor/shared/translate.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/supervisor/shared/translate.c b/supervisor/shared/translate.c
index 44544c98d..8bd3c5acd 100644
--- a/supervisor/shared/translate.c
+++ b/supervisor/shared/translate.c
@@ -122,7 +122,12 @@ char* decompress(const compressed_string_t* compressed, char* decompressed) {
return decompressed;
}
-inline __attribute__((always_inline)) const compressed_string_t* translate(const char* original) {
+inline
+// gcc10 -flto has issues with this being always_inline for debug builds.
+#if CIRCUITPY_DEBUG < 1
+ __attribute__((always_inline))
+#endif
+const compressed_string_t* translate(const char* original) {
#ifndef NO_QSTR
#define QDEF(id, str)
#define TRANSLATION(id, firstbyte, ...) if (strcmp(original, id) == 0) { static const compressed_string_t v = { .data = firstbyte, .tail = { __VA_ARGS__ } }; return &v; } else