diff --git a/modules/basis_universal/SCsub b/modules/basis_universal/SCsub index 2963babd253..381227228ed 100644 --- a/modules/basis_universal/SCsub +++ b/modules/basis_universal/SCsub @@ -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. # env_thirdparty.Append(