mirror of
https://github.com/godotengine/godot.git
synced 2026-02-07 11:21:49 +00:00
BasisUniversal: Disable strict aliasing to fix GCC optimization issue
This is flagged by upstream as something important in `basisu.h`. And indeed, we've now seen why with a regression appearing with mingw-gcc 15. Fixes #114803.
This commit is contained in:
committed by
Rémi Verschelde
parent
94971e1b47
commit
16daea3622
@@ -56,6 +56,10 @@ if env["builtin_zstd"]:
|
||||
env_thirdparty = env_basisu.Clone()
|
||||
env_thirdparty.disable_warnings()
|
||||
|
||||
if not env.msvc:
|
||||
# Required by upstream for GCC. Enabling also for LLVM-based compilers to be consistent.
|
||||
env_thirdparty.Append(CCFLAGS=["-fno-strict-aliasing"])
|
||||
|
||||
# Disable unneeded features to reduce binary size.
|
||||
# <https://github.com/BinomialLLC/basis_universal/wiki/How-to-Use-and-Configure-the-Transcoder>
|
||||
env_thirdparty.Append(
|
||||
|
||||
Reference in New Issue
Block a user