mirror of https://github.com/godotengine/godot
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:
commit
e9bb99a3bb
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue