1
0
Fork 0

Merge pull request #114839 from akien-mga/basisu-no-strict-aliasing

BasisUniversal: Disable strict aliasing to fix GCC optimization issue
This commit is contained in:
Rémi Verschelde 2026-01-11 08:44:28 +01:00 committed by GitHub
commit e9bb99a3bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -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(