mirror of
https://github.com/godotengine/godot
synced 2024-09-15 21:29:58 +00:00
[Brotli] Use aligned reads when building with sanitizers.
This commit is contained in:
parent
b0df742cbe
commit
4d9689e7f6
|
@ -74,6 +74,9 @@ if env["builtin_freetype"]:
|
||||||
env_freetype.Append(CPPDEFINES=["FT_CONFIG_OPTION_USE_BROTLI"])
|
env_freetype.Append(CPPDEFINES=["FT_CONFIG_OPTION_USE_BROTLI"])
|
||||||
env_freetype.Prepend(CPPPATH=[thirdparty_brotli_dir + "include"])
|
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":
|
if env["platform"] == "uwp":
|
||||||
# Include header for UWP to fix build issues
|
# Include header for UWP to fix build issues
|
||||||
env_freetype.Append(CCFLAGS=["/FI", '"modules/freetype/uwpdef.h"'])
|
env_freetype.Append(CCFLAGS=["/FI", '"modules/freetype/uwpdef.h"'])
|
||||||
|
|
Loading…
Reference in a new issue