Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Don't inline `MethodBind` to save on binary space on LTO.

Lukas Tenbrink3964b6e33e7a
diff --git a/core/object/method_bind.h b/core/object/method_bind.h
index 0843a32cda1..f526fe8bbc5 100644
--- a/core/object/method_bind.h
+++ b/core/object/method_bind.h
@@ -133,7 +133,8 @@ public:
uint32_t get_hash() const;
- MethodBind();
+ // No-inline to save on binary space with LTO.
+ _NO_INLINE_ MethodBind();
virtual ~MethodBind();
};