diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-03-31 17:33:28 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-03-31 18:00:49 +0300 |
commit | 4d9689e7f6da3232d712cf084d277f3015117730 (patch) | |
tree | c806768ac1d63f207999788f44f019ca3f29f59c /modules/freetype | |
parent | b0df742cbe1c81feeb3b5e4a95cecbfabb2fe8f8 (diff) |
[Brotli] Use aligned reads when building with sanitizers.
Diffstat (limited to 'modules/freetype')
-rw-r--r-- | modules/freetype/SCsub | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/freetype/SCsub b/modules/freetype/SCsub index e41e2a9acf..d23c4b637c 100644 --- a/modules/freetype/SCsub +++ b/modules/freetype/SCsub @@ -74,6 +74,9 @@ if env["builtin_freetype"]: env_freetype.Append(CPPDEFINES=["FT_CONFIG_OPTION_USE_BROTLI"]) env_freetype.Prepend(CPPPATH=[thirdparty_brotli_dir + "include"]) + if env.get("use_ubsan") or env.get("use_asan") or env.get("use_tsan") or env.get("use_lsan") or env.get("use_msan"): + env_freetype.Append(CPPDEFINES=["BROTLI_BUILD_PORTABLE"]) + if env["platform"] == "uwp": # Include header for UWP to fix build issues env_freetype.Append(CCFLAGS=["/FI", '"modules/freetype/uwpdef.h"']) |