godot
godot copied to clipboard
Android & iOS: Enable strict aliasing
For some reason, these platforms were being built with the strict aliasing rule disabled, which can prevent certain optimizations. All the other platforms are built without them, so it should be fine.
The only reason I can think of why this is necessary is that the code didn't work well otherwise because -fno-strict-aliasing was compensating for an overrelyance on memory ordering on non-ARM platforms. That wouldn't be a long-term good reason for it, though.